]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-notifications.el: add nil checks
authorJulien Danjou <julien@danjou.info>
Tue, 11 Sep 2012 10:08:59 +0000 (10:08 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 11 Sep 2012 10:08:59 +0000 (10:08 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-notifications.el

index 5644c394f7e6fd85cc70eb612233898935b5adbc..5c7f106f6db9648e6ce0f6b7ff30598a1ea58205 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-11  Julien Danjou  <julien@danjou.info>
+
+       * gnus-notifications.el (gnus-notifications): Check for nil values in
+       ignored addresses check.
+
 2012-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * qp.el (quoted-printable-decode-region): Inline+CSE+strength-reduction.
index f9c2d309a3513af2bd7e694655732b1c9eae9a35..5104a56c6e76bcc6c9d4352a10b8edeecfb956a3 100644 (file)
@@ -166,8 +166,10 @@ This is typically a function to add in
                                             (or (mail-fetch-field "From") "")))
                        (address (cadr address-components)))
                   ;; Ignore mails from ourselves
-                  (unless (gnus-string-match-p gnus-ignored-from-addresses
-                                               address)
+                  (unless (and gnus-ignored-from-addresses
+                               address
+                               (gnus-string-match-p gnus-ignored-from-addresses
+                                                    address))
                     (let* ((photo-file (gnus-notifications-get-photo-file address))
                            (notification-id (gnus-notifications-notify
                                              (or (car address-components) address)