From 131c7dfd980571a3dfbaae4da96271d9aef691c6 Mon Sep 17 00:00:00 2001 From: Alok Rajiv Date: Thu, 30 Nov 2017 14:19:57 +0800 Subject: [PATCH] Update NativeStorage.m --- 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 585df2e..fe4bc27 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) + if(reference!=nil && (NsNull*) aString == [NsNull null]) { { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults setObject: aString forKey:reference];