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

This commit is contained in:
arkon 2020-05-25 16:41:53 -04:00
parent f430b6f853
commit 9a082d4df1

View file

@ -215,7 +215,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)