mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 11:55:24 +00:00
fix(core): avoid exception when the user's cn is null
This commit is contained in:
@@ -284,7 +284,11 @@
|
||||
|
||||
- (void) _fetchCN
|
||||
{
|
||||
cn = [[self _fetchFieldForUser: @"cn"] stringByTrimmingSpaces];
|
||||
cn = [self _fetchFieldForUser: @"cn"];
|
||||
if ([cn isNotNull])
|
||||
cn = [cn stringByTrimmingSpaces];
|
||||
else
|
||||
cn = [NSString stringWithString: login];
|
||||
[cn retain];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user