(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

@@ -1100,6 +1100,12 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
endDate = [(iCalToDo*) component due];
}
if (![master startDate])
{
[self errorWithFormat: @"ignored component with no DTSTART"];
return;
}
delta = [masterEndDate timeIntervalSinceDate: [master startDate]];
recurrenceIdRange = [NGCalendarDateRange calendarDateRangeWithStartDate: recurrenceId
endDate: [recurrenceId dateByAddingYears:0 months:0 days:0 hours:0 minutes:0 seconds: delta]];