Fix NPE in rmi server instrumentation (#5042)
This commit is contained in:
parent
478800e5de
commit
d5bd3cb91b
|
@ -57,6 +57,9 @@ public class RemoteServerInstrumentation implements TypeInstrumentation {
|
|||
|
||||
// TODO review and unify with all other SERVER instrumentation
|
||||
Context parentContext = THREAD_LOCAL_CONTEXT.getAndResetContext();
|
||||
if (parentContext == null) {
|
||||
return;
|
||||
}
|
||||
request = ClassAndMethod.create(declaringClass, methodName);
|
||||
if (!instrumenter().shouldStart(parentContext, request)) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue