Skip to content

Commit 3fc1bbe

Browse files
authored
Fix rabbitmq NullPointerException (#12109)
1 parent 0ef7e50 commit 3fc1bbe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

instrumentation/rabbitmq-2.7/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/rabbitmq/RabbitChannelInstrumentation.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ public static void stopSpan(
128128
if (callDepth.decrementAndGet() > 0) {
129129
return;
130130
}
131+
if (scope == null) {
132+
return;
133+
}
131134

132135
scope.close();
133136

0 commit comments

Comments
 (0)