Skip to content

Commit

Permalink
Merge pull request escoz#489 from Igotit/master
Browse files Browse the repository at this point in the history
Check whether value is NSNull.
  • Loading branch information
escoz committed May 3, 2013
2 parents 7e05b3d + 1fdcda9 commit bb182d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions quickdialog/QRootBuilder.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ + (void)trySetProperty:(NSString *)propertyName onObject:(id)target withValue:(i
[target setValue:itemsTranslated forKeyPath:propertyName];
} else if ([value isKindOfClass:[NSDictionary class]]){
[target setValue:value forKeyPath:propertyName];
} else if (value == [NSNull null]) {
[target setValue:nil forKeyPath:propertyName];
} else if ([value isKindOfClass:[NSObject class]]){
[target setValue:value forKeyPath:propertyName];
} else if (value == nil){
Expand Down

0 comments on commit bb182d0

Please sign in to comment.