Fix when "proc" field got null System Framework maybe crashed in FrameworkHooker

This commit is contained in:
2022-10-05 02:22:12 +08:00
parent f7784b393d
commit 2b317070a2

View File

@@ -320,7 +320,7 @@ object FrameworkHooker : YukiBaseHooker() {
}
afterHook {
/** 当前进程信息 */
val proc = args().first().any()
val proc = args().first().any() ?: return@afterHook
/** 当前 pid 信息 */
val pid = ProcessRecordClass.toClass().field { name { it == "mPid" || it == "pid" } }.get(proc).int()