Skip to content

Commit

Permalink
Update NativeStorage.m
Browse files Browse the repository at this point in the history
  • Loading branch information
alokrajiv authored Nov 30, 2017
1 parent 11cbc5a commit 131c7df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ios/NativeStorage.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 131c7df

Please sign in to comment.