mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-28 13:25:43 +00:00
Merge pull request #186 from zentyal/ejhernandez/cherry-pick-42f10e1
(fix) safe-guard against not-yet-created calendar of local users
This commit is contained in:
commit
fc8eedf494
1 file changed
+3
@@ -2981,6 +2981,9 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
|||||||
theUser = [SOGoUser userWithLogin: theUID];
|
theUser = [SOGoUser userWithLogin: theUID];
|
||||||
aParent = [theUser calendarsFolderInContext: context];
|
aParent = [theUser calendarsFolderInContext: context];
|
||||||
|
|
||||||
|
if ([aParent isKindOfClass: [NSException class]])
|
||||||
|
return nil;
|
||||||
|
|
||||||
aFolders = [aParent subFolders];
|
aFolders = [aParent subFolders];
|
||||||
e = [aFolders objectEnumerator];
|
e = [aFolders objectEnumerator];
|
||||||
while ((aFolder = [e nextObject]))
|
while ((aFolder = [e nextObject]))
|
||||||
|
|||||||
Reference in new issue
Block a user