We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9645b2a commit 5b111dfCopy full SHA for 5b111df
Firebase/Database/CHANGELOG.md
@@ -1,3 +1,7 @@
1
+# v6.2.2
2
+- [fixed] Addressed crash that prevented the SDK from opening when the versioning file was
3
+ corrupted. (#5686)
4
+
5
# v6.2.1
6
- [fixed] Fixed documentation typos. (#5406, #5418)
7
Firebase/Database/Persistence/FLevelDBStorageEngine.m
@@ -132,6 +132,9 @@ - (void)runMigration {
132
}
133
} else if ([oldVersion isEqualToString:kFPersistenceVersion]) {
134
// Everythings fine no need for migration
135
+ } else if ([oldVersion length] == 0) {
136
+ FFWarn(@"I-RDB076036",
137
+ @"Version file empty. Assuming database version 1.");
138
} else {
139
// If we add more versions in the future, we need to run migration here
140
[NSException raise:NSInternalInconsistencyException
0 commit comments