Skip to content

Commit 8740d31

Browse files
ceramicatheistflovilmart
authored andcommitted
Bandaid for Crashlytics #944 (#1376)
1 parent f214dbf commit 8740d31

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Parse/Parse/PFObject.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,6 +1326,10 @@ - (void)removeOldKeysAfterFetch:(NSDictionary *)result {
13261326

13271327
- (void)_mergeAfterSaveWithResult:(NSDictionary *)result decoder:(PFDecoder *)decoder {
13281328
@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+
}
13291333
PFOperationSet *operationsBeforeSave = operationSetQueue[0];
13301334
[operationSetQueue removeObjectAtIndex:0];
13311335

0 commit comments

Comments
 (0)