Fix SandHook null pointer exception

This commit is contained in:
Jim Wu 2020-01-11 20:44:46 +08:00
parent 3a5e54669c
commit 5481615cc4
1 changed files with 5 additions and 0 deletions

View File

@ -244,6 +244,11 @@ public class HookStubManager {
args = entity.getArgs(stubArgs); args = entity.getArgs(stubArgs);
} }
if (thiz == null)
{
thiz = originMethod.getDeclaringClass();
}
if (XposedBridge.disableHooks) { if (XposedBridge.disableHooks) {
if (hasStubBackup) { if (hasStubBackup) {
return callOrigin.call(stubArgs); return callOrigin.call(stubArgs);