Explorar o código

add missing return when delete token handler is nil (#5247) (#5248)

Co-authored-by: Chen Liang <chliang@google.com>
Ryan Wilson %!s(int64=6) %!d(string=hai) anos
pai
achega
b2921405e2
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      Firebase/InstanceID/CHANGELOG.md
  2. 1 0
      Firebase/InstanceID/FIRInstanceID.m

+ 1 - 0
Firebase/InstanceID/CHANGELOG.md

@@ -1,5 +1,6 @@
 # 2020-03 -- 4.3.3
 - [fixed] Fixed provisioning profile location for catalyst. (#5048)
+- [fixed] Fixed crash when passing a nil handler to deleteToken request. (#5247)
 - [changed] Remove obsolete logic to improve performance and reduce keychain operations. (#5211, #5237)
 
 # 2020-02 -- 4.3.2

+ 1 - 0
Firebase/InstanceID/FIRInstanceID.m

@@ -367,6 +367,7 @@ static FIRInstanceID *gInstanceID;
   if (!handler) {
     FIRInstanceIDLoggerError(kFIRInstanceIDMessageCodeInstanceID001,
                              kFIRInstanceIDInvalidNilHandlerError);
+    return;
   }
 
   // comparing enums to ints directly throws a warning