From fed0fd8747664e7245562fe7995eb954c79899f7 Mon Sep 17 00:00:00 2001 From: mbkinnovo Date: Sat, 27 Jan 2018 22:41:44 +0100 Subject: [PATCH] Fixed NSNull check and removed excess { --- src/ios/NativeStorage.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios/NativeStorage.m b/src/ios/NativeStorage.m index fe4bc27..9cdc295 100644 --- a/src/ios/NativeStorage.m +++ b/src/ios/NativeStorage.m @@ -211,7 +211,7 @@ - (void) setItem: (CDVInvokedUrlCommand*) command NSString* reference = [command.arguments objectAtIndex:0]; NSString* aString = [command.arguments objectAtIndex:1]; - if(reference!=nil && (NsNull*) aString == [NsNull null]) { + if(reference!=nil && [aString class] == [NSNull class]) { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults setObject: aString forKey:reference];