From c8acba8f5a8eb43c6b4a5ff2b648af82bbf8fd59 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Thu, 10 Sep 2015 20:07:42 -0400 Subject: [PATCH] (fix) safe-guard against not-yet-created calendar of local users --- SoObjects/Appointments/SOGoAppointmentFolder.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SoObjects/Appointments/SOGoAppointmentFolder.m b/SoObjects/Appointments/SOGoAppointmentFolder.m index f0d310bd7..3ff2b26ec 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolder.m +++ b/SoObjects/Appointments/SOGoAppointmentFolder.m @@ -2980,7 +2980,10 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir theUser = [SOGoUser userWithLogin: theUID]; aParent = [theUser calendarsFolderInContext: context]; - + + if ([aParent isKindOfClass: [NSException class]]) + return nil; + aFolders = [aParent subFolders]; e = [aFolders objectEnumerator]; while ((aFolder = [e nextObject]))