diff --git a/rasp/jvm/JVMProbe/src/main/java/com/security/smith/asm/SmithMethodVisitor.java b/rasp/jvm/JVMProbe/src/main/java/com/security/smith/asm/SmithMethodVisitor.java index 549f99fbd..90472cd32 100644 --- a/rasp/jvm/JVMProbe/src/main/java/com/security/smith/asm/SmithMethodVisitor.java +++ b/rasp/jvm/JVMProbe/src/main/java/com/security/smith/asm/SmithMethodVisitor.java @@ -360,8 +360,10 @@ public void visitMaxs(final int maxStack, final int maxLocals) { if (exceptionHook == null || exceptionHook == "") { - if (xHook == null || xHook == "") { + if (postHook == null || postHook == "") { xHook = "trace"; + } else { + xHook = postHook; } Type[] types = Type.getArgumentTypes(methodDesc);