File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,12 @@ + (void)load {
54
54
NSMutableDictionary *instances = [self instances ];
55
55
@synchronized (instances) {
56
56
FIRDatabase *deletedApp = instances[appName];
57
- // Clean up the deleted instance in an effort to remove any resources still in use.
58
- // Note: Any leftover instances of this exact database will be invalid.
59
- [FRepoManager disposeRepos: deletedApp.config];
60
- [instances removeObjectForKey: appName];
57
+ if (deletedApp) {
58
+ // Clean up the deleted instance in an effort to remove any resources still in use.
59
+ // Note: Any leftover instances of this exact database will be invalid.
60
+ [FRepoManager disposeRepos: deletedApp.config];
61
+ [instances removeObjectForKey: appName];
62
+ }
61
63
}
62
64
}];
63
65
}
You can’t perform that action at this time.
0 commit comments