From 4be008c3331b2b3431db9dd038cfa42470e1bc27 Mon Sep 17 00:00:00 2001 From: Clyzer Date: Mon, 12 Dec 2022 14:16:58 -0300 Subject: [PATCH] NullPointerException Fixed --- .../src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt b/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt index 18a85f6..5dda2dd 100644 --- a/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt +++ b/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt @@ -103,7 +103,7 @@ class MundoDonghuaProvider : MainAPI() { "Finalizada" -> ShowStatus.Completed else -> null } - val specialEpisodes = doc2.selectFirst("sm-row bg-white pt-10 pr-20 pb-15 pl-20")!!.selectFirst("row")!!.select("item col-lg-2 col-md-2 col-xs-4").map { + val specialEpisodes = doc2.selectFirst("sm-row bg-white pt-10 pr-20 pb-15 pl-20")?.selectFirst("row")?.select("item col-lg-2 col-md-2 col-xs-4").map { if (it.selectFirst("sf fc-dark f-bold")?.text()?.contains(title) ?: false) { val name = it.selectFirst("sf fc-dark f-bold")?.text()?.replace("Episodio","-") ?: "fallo" val link = it.attr("href")