Fix being unable to restore backups if there's no categories

(cherry picked from commit 9a082d4df1ad14edd6427c072199d34b10a70c97)
This commit is contained in:
arkon 2020-05-25 16:41:53 -04:00 committed by Jobobby04
parent 3111daae34
commit 1a1b3342c0

View File

@ -238,7 +238,7 @@ class BackupRestoreService : Service() {
errors.clear()
// Restore categories
restoreCategories(json.get(CATEGORIES))
json.get(CATEGORIES)?.let { restoreCategories(it) }
// Store source mapping for error messages
sourceMapping = BackupRestoreValidator.getSourceMapping(json)