Skip to content

Commit

Permalink
Fix NPE in rmi server instrumentation (#5042)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit authored Jan 7, 2022
1 parent 478800e commit d5bd3cb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ public static void onEnter(

// 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;
Expand Down

0 comments on commit d5bd3cb

Please sign in to comment.