Skip to content

Commit

Permalink
fix(preferences): avoid exception when parsing PreventInvitationsWhit…
Browse files Browse the repository at this point in the history
…elist

Fixes #5006
  • Loading branch information
cgx committed Apr 17, 2020
1 parent 6446176 commit 824b383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/PreferencesUI/UIxJSONPreferences.m
Expand Up @@ -465,7 +465,7 @@ - (NSString *) jsonSettings
// sorry about this engineering brain fart!
v = [[settings objectForKey: @"Calendar"] objectForKey: @"PreventInvitationsWhitelist"];

if (v && [v isKindOfClass: [NSString class]])
if (v && [v isKindOfClass: [NSString class]] && [v length] > 0)
{
[[settings objectForKey: @"Calendar"] setObject: [v objectFromJSONString]
forKey: @"PreventInvitationsWhitelist"];
Expand Down

0 comments on commit 824b383

Please sign in to comment.