Skip to content

Commit d274cfe

Browse files
paulb777christibbs
authored andcommitted
Fix a rare RC crash (#6556)
1 parent 1ffc662 commit d274cfe

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

FirebaseRemoteConfig/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# v7.0.0
22
- [changed] Updated `lastFetchTime` field to readonly. (#6567)
3+
- [changed] Functionally neutral change to stop using a deprecated AB Testing SDK method. (#6581)
4+
5+
# v4.9.1
6+
- [fixed] Fix an `attempt to insert nil object` crash in `fetchWithExpirationDuration:`. (#6522)
37

48
# v4.9.0
59
- [fixed] Fixed `FirebaseApp.delete()` related crash in `RC Config Fetch`. (#6123)

FirebaseRemoteConfig/Sources/RCNConfigFetch.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,9 @@ - (void)fetchWithUserProperties:(NSDictionary *)userProperties
412412
strongSelf->_settings.lastFetchError = FIRRemoteConfigErrorInternalError;
413413
NSDictionary<NSErrorUserInfoKey, id> *userInfo = @{
414414
NSLocalizedDescriptionKey :
415-
(error ? [error localizedDescription]
416-
: [NSString
417-
stringWithFormat:@"Internal Error. Status code: %ld", (long)statusCode])
415+
([error localizedDescription]
416+
?: [NSString
417+
stringWithFormat:@"Internal Error. Status code: %ld", (long)statusCode])
418418
};
419419
return [strongSelf
420420
reportCompletionOnHandler:completionHandler

0 commit comments

Comments
 (0)