Skip to content

Commit

Permalink
protect against empty arg in advice to eww-external
Browse files Browse the repository at this point in the history
  • Loading branch information
tvraman committed Nov 19, 2020
1 parent d11f492 commit 958ce07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/emacspeak-eww.el
Original file line number Diff line number Diff line change
Expand Up @@ -1944,7 +1944,7 @@ Warning, this is fragile, and depends on a stable id/class for the
;;; instead.
(defadvice eww-browse-with-external-browser(around emacspeak pre act comp)
"Use our m-player integration."
(let* ((url (ad-get-arg 0))
(let* ((url (or (ad-get-arg 0) ""))
(media-p (string-match emacspeak-media-extensions url)))
(cond
(media-p (emacspeak-m-player url))
Expand Down

0 comments on commit 958ce07

Please sign in to comment.