Skip to content

Commit 8b6431c

Browse files
authored
fix: PegasusHook.kt class not found (yujincheng08#1664)
1 parent b812bcc commit 8b6431c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/me/iacn/biliroaming/hook/PegasusHook.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,8 @@ class PegasusHook(classLoader: ClassLoader) : BaseHook(classLoader) {
722722
}
723723
}
724724

725-
"com.bilibili.pegasus.ext.threepoint.ThreePointKt".findClass(mClassLoader)
726-
.declaredMethods.find { it.parameterTypes.size == 8 }
725+
"com.bilibili.pegasus.ext.threepoint.ThreePointKt".findClassOrNull(mClassLoader)
726+
?.declaredMethods?.find { it.parameterTypes.size == 8 }
727727
?.hookBeforeMethod {
728728
if (hookDislikeReason(it.args[3])) {
729729
it.result = null

0 commit comments

Comments
 (0)