File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change
1
+ # 3.4.1
2
+ - [ fixed] Fix crash in FIRStorageUploadTask (#3750 ).
3
+
1
4
# 3.4.0
2
5
- [ fixed] Ensure that users don't accidently invoke ` Storage() ` instead of ` Storage.storage() ` .
3
6
If your code calls the constructor of Storage directly, we will throw an assertion failure,
Original file line number Diff line number Diff line change @@ -141,8 +141,6 @@ - (void)enqueue {
141
141
// Process fetches
142
142
strongSelf.state = FIRStorageTaskStateRunning;
143
143
144
- #pragma clang diagnostic push
145
- #pragma clang diagnostic ignored "-Warc-retain-cycles"
146
144
strongSelf->_fetcherCompletion = ^(NSData *_Nullable data, NSError *_Nullable error) {
147
145
// Fire last progress updates
148
146
[self fireHandlersForStatus: FIRStorageTaskStatusProgress snapshot: self .snapshot];
@@ -172,11 +170,12 @@ - (void)enqueue {
172
170
173
171
[self finishTaskWithStatus: FIRStorageTaskStatusSuccess snapshot: self .snapshot];
174
172
};
175
- #pragma clang diagnostic pop
176
173
177
174
[strongSelf->_uploadFetcher
178
175
beginFetchWithCompletionHandler: ^(NSData *_Nullable data, NSError *_Nullable error) {
179
- weakSelf.fetcherCompletion (data, error);
176
+ if (weakSelf.fetcherCompletion != nil ) {
177
+ weakSelf.fetcherCompletion (data, error);
178
+ }
180
179
}];
181
180
}];
182
181
}
You can’t perform that action at this time.
0 commit comments