mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-13 19:01:23 +00:00
(fix) safe-guard against not-yet-created calendar of local users
This commit is contained in:
committed by
Enrique J. Hernández Blasco
parent
3da6c90bbe
commit
c8acba8f5a
@@ -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]))
|
||||
|
||||
Reference in New Issue
Block a user