From 9a082d4df1ad14edd6427c072199d34b10a70c97 Mon Sep 17 00:00:00 2001 From: arkon Date: Mon, 25 May 2020 16:41:53 -0400 Subject: [PATCH] Fix being unable to restore backups if there's no categories --- .../eu/kanade/tachiyomi/data/backup/BackupRestoreService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupRestoreService.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupRestoreService.kt index b23f369b96..c57ff2051a 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupRestoreService.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupRestoreService.kt @@ -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)