From 938d3fe2a893d1c19d24d35526dfcf3416b61f64 Mon Sep 17 00:00:00 2001 From: Mijo Gracanin Date: Wed, 15 Feb 2023 09:04:15 +0100 Subject: [PATCH] #165: Fix potential crash --- .../src/ios/MicroblinkModule/MicroblinkModule/MBBlinkIDModule.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/MBBlinkIDModule.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/MBBlinkIDModule.m index c4a92ec..3face2e 100644 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/MBBlinkIDModule.m +++ b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/MBBlinkIDModule.m @@ -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;