mirror of
https://github.com/KitsunePie/AppErrorsTracking.git
synced 2025-09-04 02:05: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 {
|
afterHook {
|
||||||
/** 当前进程信息 */
|
/** 当前进程信息 */
|
||||||
val proc = args().first().any()
|
val proc = args().first().any() ?: return@afterHook
|
||||||
|
|
||||||
/** 当前 pid 信息 */
|
/** 当前 pid 信息 */
|
||||||
val pid = ProcessRecordClass.toClass().field { name { it == "mPid" || it == "pid" } }.get(proc).int()
|
val pid = ProcessRecordClass.toClass().field { name { it == "mPid" || it == "pid" } }.get(proc).int()
|
||||||
|
Reference in New Issue
Block a user