-
-
Notifications
You must be signed in to change notification settings - Fork 874
Closed
Labels
type:bugImpaired feature or lacking behavior that is likely assumedImpaired feature or lacking behavior that is likely assumed
Milestone
Description
Contrary to documentation and the provided error message, PFObject (and PFUser) doesn't allow explicit NSNull values when set from an NSDictionary.
example code:
-(void)codeToTest {
PFObject *testObject = [PFObject objectWithClassName:@"Foo"];
[testObject setValuesForKeysWithDictionary:@{@"a": @"b",
@"foo": [NSNull null]}];
[testObject save];
}
Exception:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Can't use nil for keys or values on PFObject. Use NSNull for values.'
Metadata
Metadata
Assignees
Labels
type:bugImpaired feature or lacking behavior that is likely assumedImpaired feature or lacking behavior that is likely assumed