Fix being unable to restore backups if there's no categories
(cherry picked from commit 9a082d4df1ad14edd6427c072199d34b10a70c97)
This commit is contained in:
parent
3111daae34
commit
1a1b3342c0
@ -238,7 +238,7 @@ class BackupRestoreService : Service() {
|
|||||||
errors.clear()
|
errors.clear()
|
||||||
|
|
||||||
// Restore categories
|
// Restore categories
|
||||||
restoreCategories(json.get(CATEGORIES))
|
json.get(CATEGORIES)?.let { restoreCategories(it) }
|
||||||
|
|
||||||
// Store source mapping for error messages
|
// Store source mapping for error messages
|
||||||
sourceMapping = BackupRestoreValidator.getSourceMapping(json)
|
sourceMapping = BackupRestoreValidator.getSourceMapping(json)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user