Skip to content

Commit 572f6d1

Browse files
Merge pull request #156 from ParsePlatform/richardross.query.crash.fix
Fixed rare crash in PFQuery related to weakify/strongify.
2 parents 61906d3 + ec5d73a commit 572f6d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Parse/PFQuery.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,9 @@ - (BFTask *)_findObjectsAsyncForQueryState:(PFQueryState *)queryState after:(BFT
842842
user:user];
843843
}] continueWithBlock:^id(BFTask *task) {
844844
@strongify(self);
845+
if (!self) {
846+
return task;
847+
}
845848
@synchronized (self) {
846849
if (_cancellationTokenSource == cancellationTokenSource) {
847850
_cancellationTokenSource = nil;

0 commit comments

Comments
 (0)