(fix) return if not content is there, to avoid random crash

pull/232/head
Ludovic Marcotte 2017-01-13 13:16:01 -05:00
parent 4a21a02f98
commit 6e0f5b2254
1 changed files with 4 additions and 1 deletions

View File

@ -619,7 +619,10 @@
if (content)
ASSIGN (originalCalendar, [iCalCalendar parseSingleFromSource: content]);
else
[self warnWithFormat: @"content not available, we will crash"];
{
[self warnWithFormat: @"content not available, we don't update the event"];
return;
}
}
oldMaster = (iCalRepeatableEntityObject *)