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];