From 59281f02c1f89d6da5bbb16695e8c70d2d03aaa3 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Fri, 13 Jan 2017 13:16:01 -0500 Subject: [PATCH] (fix) return if not content is there, to avoid random crash --- SoObjects/Appointments/SOGoCalendarComponent.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SoObjects/Appointments/SOGoCalendarComponent.m b/SoObjects/Appointments/SOGoCalendarComponent.m index 6ae1c7841..f2225dbb5 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.m +++ b/SoObjects/Appointments/SOGoCalendarComponent.m @@ -618,7 +618,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 *)