Skip to content

Commit f18162b

Browse files
committed
Update implementation that properly avoids nil class.
1 parent c388fd9 commit f18162b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Parse/PFObject.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,9 @@ + (instancetype)objectWithClassName:(NSString *)className {
16331633
}
16341634

16351635
+ (instancetype)objectWithClassName:(NSString *)className dictionary:(NSDictionary *)dictionary {
1636-
return [self _objectFromDictionary:dictionary defaultClassName:className completeData:YES];
1636+
PFObject *object = [self objectWithClassName:className];
1637+
[object _mergeAfterSaveWithResult:dictionary decoder:[PFDecoder objectDecoder]];
1638+
return object;
16371639
}
16381640

16391641
+ (instancetype)objectWithoutDataWithClassName:(NSString *)className objectId:(NSString *)objectId {

0 commit comments

Comments
 (0)