mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-02 10:05:26 +00:00
Avoid potential corruption of FoldersOrder setting
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#import <Foundation/NSValue.h>
|
||||
|
||||
#import <NGExtensions/NSObject+Logs.h>
|
||||
|
||||
#import <SOGo/NSDictionary+Utilities.h>
|
||||
#import <SOGo/SOGoPermissions.h>
|
||||
@@ -147,7 +148,10 @@ _intValueFromHex (NSString *hexString)
|
||||
{
|
||||
folder = [sortedFolders objectAtIndex: count];
|
||||
folderName = [folder nameInContainer];
|
||||
[sortedFolderNames addObject: folderName];
|
||||
if (folderName)
|
||||
[sortedFolderNames addObject: folderName];
|
||||
else
|
||||
[self errorWithFormat: @"Unexpected entry in FoldersOrder setting: %@", folder];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user