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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue