Skip to content

Commit

Permalink
[GR-17521] Agent NullPointerException for getEnclosingMethod.
Browse files Browse the repository at this point in the history
PullRequest: graal/4169
  • Loading branch information
peter-hofer committed Aug 9, 2019
2 parents 7598eb1 + 0ea992a commit e4ac613
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ private static boolean getEnclosingMethod(JNIEnvironment jni, JNIObjectHandle ca
}
}
boolean allowed = enclosing.equal(nullHandle()) || accessVerifier == null || accessVerifier.verifyGetEnclosingMethod(jni, holder, name, signature, enclosing, callerClass);
traceBreakpoint(jni, nullHandle(), nullHandle(), callerClass, bp.specification.methodName, allowed ? result : false);
traceBreakpoint(jni, nullHandle(), nullHandle(), callerClass, bp.specification.methodName, (allowed && enclosing.notEqual(nullHandle())) ? result : false);
if (!allowed) {
jvmtiFunctions().ForceEarlyReturnObject().invoke(jvmtiEnv(), nullHandle(), nullHandle());
}
Expand Down

0 comments on commit e4ac613

Please sign in to comment.