(fix) avoid exceptions for RRULE with no DTSTART

This commit is contained in:
Ludovic Marcotte
2019-09-03 13:34:35 -04:00
parent 3065783c2c
commit e4ad088f0d
5 changed files with 20 additions and 1 deletions
@@ -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;