diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/source/online/english/Mangahere.kt b/app/src/main/java/eu/kanade/tachiyomi/data/source/online/english/Mangahere.kt index fb87e9dc5f..dd63a5d137 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/source/online/english/Mangahere.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/source/online/english/Mangahere.kt @@ -102,7 +102,7 @@ class Mangahere(context: Context, override val id: Int) : ParsedOnlineSource(con } override fun pageListParse(document: Document, pages: MutableList) { - document.select("select.wid60").first().getElementsByTag("option").forEach { + document.select("select.wid60").first()?.getElementsByTag("option")?.forEach { pages.add(Page(pages.size, it.attr("value"))) } pages.getOrNull(0)?.imageUrl = imageUrlParse(document)