From e8db980dcb50bf1883b3d456a8e070baae83a2d7 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 25 Aug 2020 16:36:15 +0200 Subject: [PATCH] Don't bug out in gnus-icalendar when there no recurring event * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event:recurring-days): Fix previous patch (bug#43038) -- don't bug out when there's no recurring event. --- lisp/gnus/gnus-icalendar.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el index f13d4dec014..da41b08c717 100644 --- a/lisp/gnus/gnus-icalendar.el +++ b/lisp/gnus/gnus-icalendar.el @@ -148,7 +148,7 @@ ("TH" . 4) ("FR" . 5) ("SA" . 6)))) - (when (string-match "BYDAY=\\([^;]+\\)" rrule) + (when (and rrule (string-match "BYDAY=\\([^;]+\\)" rrule)) (let ((bydays (split-string (match-string 1 rrule) ","))) (seq-map (lambda (x) (cdr (assoc x weekday-map))) -- 2.39.2