From 5bf039b8012cbfc90d46d4b3bd35cb341dcf1e68 Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Mon, 22 Mar 2021 16:40:38 -0400 Subject: [PATCH] Fixing crash when library view is null --- .../java/eu/kanade/tachiyomi/ui/library/LibraryController.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt index 6c57dc12ef..22669d4b6a 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt @@ -294,6 +294,7 @@ class LibraryController( } private fun setActiveCategory() { + category_recycler ?: return val currentCategory = presenter.categories.indexOfFirst { if (presenter.showAllCategories) it.order == activeCategory else presenter.currentCategory == it.id }