From 6bbd1825599cfb050956fbeb77923d72c06e6138 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 4c47df631..59acf97b4 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolder.m +++ b/SoObjects/Appointments/SOGoAppointmentFolder.m @@ -2988,7 +2988,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]))