From d46a3e9982eb771255aad802d401c540995c79ac Mon Sep 17 00:00:00 2001 From: John Hamelink Date: Fri, 15 Apr 2022 02:40:45 +0100 Subject: [PATCH 2/5] lisp/gnus/gnus-icalendar: Return nil if datefield couldnt be decoded --- lisp/gnus/gnus-icalendar.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el index 7d4a98e034..8eb3172e01 100644 --- a/lisp/gnus/gnus-icalendar.el +++ b/lisp/gnus/gnus-icalendar.el @@ -165,7 +165,8 @@ gnus-icalendar-event--decode-datefield (icalendar--get-event-property-attributes event field) zone-map)) (dtdate-dec (icalendar--decode-isodatetime dtdate nil dtdate-zone))) - (encode-time dtdate-dec))) + (unless (null dtdate-dec) + (encode-time dtdate-dec)))) (defun gnus-icalendar-event--find-attendee (ical name-or-email) (let* ((event (car (icalendar--all-events ical))) -- 2.35.2