Skip to content

Commit 278ab82

Browse files
committed
Adds precondition to prevent crash
1 parent 8a03368 commit 278ab82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Parse/Parse/Internal/LocalDataStore/OfflineStore/PFOfflineStore.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,7 @@ - (BFTask *)findAsyncForQueryState:(PFQueryState *)queryState
972972
@synchronized(self.lock) {
973973
pointer = [self.UUIDToObjectMap objectForKey:uuid];
974974
if (!pointer) {
975+
PFPreconditionWithTask(parseClassName, @"Unable to get fetch an object without a className %@ %@ %@", uuid, objectId, parseClassName);
975976
pointer = [PFObject objectWithoutDataWithClassName:parseClassName objectId:objectId];
976977

977978
// If it doesn't have objectId, we don't really need the UUID, and this simplifies some

0 commit comments

Comments
 (0)