(fix) avoid exceptions for RRULE with no DTSTART

This commit is contained in:
Ludovic Marcotte committed 2019-09-03 13:34:35 -04:00
1 parent 3065783c2c
commit e4ad088f0d
5 files changed
+20 -1

No files matched your search

@@ -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;