jupyter--decode-message-part: Return nil when MSG is nil

This commit is contained in:
Nathaniel Nicandro 2019-01-16 16:59:47 -06:00
parent 9b955398cd
commit 1c6a5e4363
No known key found for this signature in database
GPG key ID: C34814B309DD06B8

View file

@ -488,7 +488,7 @@ set it to the result of calling `jupyter--decode' on the second
element. If the third element is non-nil, return it. Otherwise
return the value of KEY in MSG."
`(let ((part (plist-get ,msg ,key)))
(if (and (listp part) (eq (car part) 'message-part))
(if (and (consp part) (eq (car part) 'message-part))
(or (nth 2 part) (jupyter--decode part))
part)))