From 0a6de2b3eab9f375a4021b10a1ff79a570fc9ed1 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 2 May 2020 10:24:37 -0400 Subject: [PATCH] Fix backup failing when source isn't installed --- .../main/java/eu/kanade/tachiyomi/data/backup/BackupManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupManager.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupManager.kt index eb702d6de..f90a91832 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupManager.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupManager.kt @@ -131,7 +131,7 @@ class BackupManager(val context: Context, version: Int = CURRENT_VERSION) { mangaEntries.add(backupMangaObject(manga, flags)) // Maintain set of extensions/sources used (excludes local source) - if (manga.source != 0L) { + if (manga.source != 0L && sourceManager.get(manga.source) != null) { extensions.add("${manga.source}:${sourceManager.get(manga.source)!!.name}") } }