Skip to content

Commit 419eb50

Browse files
authored
Fix NPE in netty 3.8 instrumentation (#13801)
1 parent 3f70185 commit 419eb50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instrumentation/netty/netty-3.8/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/netty/v3_8/ChannelFutureListenerInstrumentation.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static Scope activateScope(@Advice.Argument(0) ChannelFuture future) {
5454
- To capture scope only in case of error.
5555
*/
5656
Throwable cause = future.getCause();
57-
if (cause == null) {
57+
if (cause == null || future.getChannel() == null) {
5858
return null;
5959
}
6060

0 commit comments

Comments
 (0)