mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-28 09:53:23 +00:00
(fix) avoid exceptions for RRULE with no DTSTART
This commit is contained in:
@@ -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]];
|
||||
|
||||
Reference in New Issue
Block a user