From 6e0f5b22544db5844c3c8e4e41a0c3e373da54e0 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 d37438292..31a79a095 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.m +++ b/SoObjects/Appointments/SOGoCalendarComponent.m @@ -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 *)