Skip to content

Commit

Permalink
#165: Fix potential crash
Browse files Browse the repository at this point in the history
  • Loading branch information
mijo-gracanin committed Feb 15, 2023
1 parent f188569 commit 938d3fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ - (NSDictionary *)sanitizeDictionary:(NSDictionary *)dictionary {
NSMutableDictionary *mutableDictionary = [[NSMutableDictionary alloc] initWithDictionary:dictionary];
for (NSString* key in dictionary.allKeys) {
if (mutableDictionary[key] == [NSNull null]) {
mutableDictionary[key] = nil;
[mutableDictionary removeObjectForKey:key];
}
}
return mutableDictionary;
Expand Down

0 comments on commit 938d3fe

Please sign in to comment.