Merge pull request #1818 from wavexx/headers_fix_nil_addr

Check for nil before calling mu4e-user-mail-address-p
This commit is contained in:
Dirk-Jan C. Binnema 2020-10-19 21:53:48 +03:00 committed by GitHub
commit 6fc294102b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -608,7 +608,7 @@ cdr element the To: prefix.")
otherwise ; show the from address; prefixed with the appropriate
`mu4e-headers-from-or-to-prefix'."
(let ((addr (cdr-safe (car-safe (mu4e-message-field msg :from)))))
(if (mu4e-user-mail-address-p addr)
(if (and addr (mu4e-user-mail-address-p addr))
(concat (cdr mu4e-headers-from-or-to-prefix)
(mu4e~headers-contact-str (mu4e-message-field msg :to)))
(concat (car mu4e-headers-from-or-to-prefix)