mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-05 20:10:33 +00:00
(fix) avoid exceptions for RRULE with no DTSTART
This commit is contained in:
@@ -79,6 +79,10 @@
|
||||
repeatCount = 0;
|
||||
hasRepeatCount = [rrule hasRepeatCount];
|
||||
|
||||
if (!firstRange)
|
||||
// Can happen when event/todo has a rrule with no dtstart
|
||||
return nil;
|
||||
|
||||
if ([endDate compare: firStart] == NSOrderedAscending)
|
||||
// Range ends before first occurrence
|
||||
return nil;
|
||||
|
||||
Reference in New Issue
Block a user