Skip to content

Commit

Permalink
Merge pull request #101 from TheCocoaProject/issue-88-patch-1
Browse files Browse the repository at this point in the history
Attempting Patch
  • Loading branch information
alokrajiv authored Jan 5, 2018
2 parents 3ac059f + 131c7df commit 8e6e6e7
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 8e6e6e7

Please sign in to comment.