Skip to content

Commit f8b6e8f

Browse files
authored
Fix a rare RC crash (#6556)
1 parent 0c6dd55 commit f8b6e8f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

FirebaseRemoteConfig/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v4.9.1
2+
- [fixed] Fix an `attempt to insert nil object` crash in `fetchWithExpirationDuration:`. (#6522)
3+
14
# v4.9.0
25
- [fixed] Fixed `FirebaseApp.delete()` related crash in `RC Config Fetch`. (#6123)
36

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)