diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/source/global_search/GlobalSearchController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/source/global_search/GlobalSearchController.kt index e008ff178d..ee72f4be6a 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/source/global_search/GlobalSearchController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/source/global_search/GlobalSearchController.kt @@ -195,7 +195,7 @@ open class GlobalSearchController( */ fun setItems(searchResult: List) { if (extensionFilter != null) { - val results = searchResult.first().results + val results = searchResult.firstOrNull()?.results if (results != null && results.size == 1) { val manga = results.first().manga router.replaceTopController(MangaDetailsController(manga, true)