mirror of
https://github.com/KitsunePie/AppErrorsTracking.git
synced 2025-09-01 08:45:16 +08:00
Fix when "proc" field got null System Framework maybe crashed in FrameworkHooker
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user