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 }