We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f214dbf commit 8740d31Copy full SHA for 8740d31
Parse/Parse/PFObject.m
@@ -1326,6 +1326,10 @@ - (void)removeOldKeysAfterFetch:(NSDictionary *)result {
1326
1327
- (void)_mergeAfterSaveWithResult:(NSDictionary *)result decoder:(PFDecoder *)decoder {
1328
@synchronized (lock) {
1329
+ if (operationSetQueue.count == 0)
1330
+ { // it should never be empty at this point. if it is, add a dummy:
1331
+ [operationSetQueue addObject:[[PFOperationSet alloc] init]];
1332
+ }
1333
PFOperationSet *operationsBeforeSave = operationSetQueue[0];
1334
[operationSetQueue removeObjectAtIndex:0];
1335
0 commit comments