Skip to content

Commit

Permalink
Merge pull request #109 from mbkinnovo/master
Browse files Browse the repository at this point in the history
Fixed NSNull check and removed excess {
  • Loading branch information
GillesC authored Jan 29, 2018
2 parents 27be91e + fed0fd8 commit aff0b51
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 && (NsNull*) aString == [NsNull null]) {
if(reference!=nil && [aString class] == [NSNull class])
{
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject: aString forKey:reference];
Expand Down

0 comments on commit aff0b51

Please sign in to comment.