From 2967c49f5a682bc189c0df0c71b3b64439a7216c Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Mon, 19 Oct 2020 15:35:08 +0200 Subject: [PATCH] Check for nil before calling mu4e-user-mail-address-p --- mu4e/mu4e-headers.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mu4e/mu4e-headers.el b/mu4e/mu4e-headers.el index 641c1139..e7978ca8 100644 --- a/mu4e/mu4e-headers.el +++ b/mu4e/mu4e-headers.el @@ -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)