diff --git a/SoObjects/Appointments/SOGoCalendarComponent.m b/SoObjects/Appointments/SOGoCalendarComponent.m index 4e627ef62..f854a7efd 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.m +++ b/SoObjects/Appointments/SOGoCalendarComponent.m @@ -476,6 +476,14 @@ static inline BOOL _occurenceHasID (iCalRepeatableEntityObject *occurence, NSStr NSCalendarDate *recID, *newDate; // Compute time interval from previous event definition. + if (!originalCalendar) + { + if (content) + ASSIGN (originalCalendar, [iCalCalendar parseSingleFromSource: content]); + else + [self warnWithFormat: @"content not available, we will crash"]; + } + oldMaster = (iCalRepeatableEntityObject *) [originalCalendar firstChildWithTag: [self componentTag]]; deltaSecs = [[newEvent startDate]