diff --git a/app/src/main/java/me/iacn/biliroaming/hook/BangumiSeasonHook.kt b/app/src/main/java/me/iacn/biliroaming/hook/BangumiSeasonHook.kt index b70de56877..0c8b9768ae 100644 --- a/app/src/main/java/me/iacn/biliroaming/hook/BangumiSeasonHook.kt +++ b/app/src/main/java/me/iacn/biliroaming/hook/BangumiSeasonHook.kt @@ -456,6 +456,10 @@ class BangumiSeasonHook(classLoader: ClassLoader) : BaseHook(classLoader) { val navList = v.callMethodAs>("getNavList") .map { SearchNav.parseFrom(it.callMethodAs("toByteArray")) } .toMutableList() + // fix crash when searching sensitive words + if (navList.size == 0) { + return + } val currentArea = runCatchingOrNull { XposedInit.country.get(5L, TimeUnit.SECONDS) }