Skip to content

Commit 3e1143a

Browse files
Checking strongSelf
1 parent a6c9b7c commit 3e1143a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firebase/Storage/FIRStorageDownloadTask.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ - (void)enqueueWithData:(nullable NSData *)resumeData {
7474
}
7575

7676
[fetcher setResumeDataBlock:^(NSData *data) {
77-
if (data) {
78-
FIRStorageDownloadTask *strong = weakSelf;
77+
FIRStorageDownloadTask *strong = weakSelf;
78+
if (strong && data) {
7979
strong->_downloadData = data;
8080
}
8181
}];

0 commit comments

Comments
 (0)