Skip to content

Commit b292140

Browse files
add missing return when delete token handler is nil (#5247) (#5248)
Co-authored-by: Chen Liang <[email protected]>
1 parent 94f0872 commit b292140

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Firebase/InstanceID/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# 2020-03 -- 4.3.3
22
- [fixed] Fixed provisioning profile location for catalyst. (#5048)
3+
- [fixed] Fixed crash when passing a nil handler to deleteToken request. (#5247)
34
- [changed] Remove obsolete logic to improve performance and reduce keychain operations. (#5211, #5237)
45

56
# 2020-02 -- 4.3.2

Firebase/InstanceID/FIRInstanceID.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ - (void)deleteTokenWithAuthorizedEntity:(NSString *)authorizedEntity
367367
if (!handler) {
368368
FIRInstanceIDLoggerError(kFIRInstanceIDMessageCodeInstanceID001,
369369
kFIRInstanceIDInvalidNilHandlerError);
370+
return;
370371
}
371372

372373
// comparing enums to ints directly throws a warning

0 commit comments

Comments
 (0)