Skip to content

Commit 72ab912

Browse files
Update NettyUtils.java
1 parent c4d0100 commit 72ab912

File tree

1 file changed

+2
-1
lines changed
  • http-clients/netty-nio-client/src/main/java/software/amazon/awssdk/http/nio/netty/internal/utils

1 file changed

+2
-1
lines changed

http-clients/netty-nio-client/src/main/java/software/amazon/awssdk/http/nio/netty/internal/utils/NettyUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ private static String getMessageForTooManyAcquireOperationsError() {
135135
public static String closedChannelMessage(Channel channel) {
136136
ChannelDiagnostics channelDiagnostics = channel != null && channel.attr(CHANNEL_DIAGNOSTICS) != null ?
137137
channel.attr(CHANNEL_DIAGNOSTICS).get() : null;
138-
ChannelDiagnostics parentChannelDiagnostics = channel != null && channel.parent() != null ?
138+
ChannelDiagnostics parentChannelDiagnostics = channel != null && channel.parent() != null &&
139+
channel.parent().attr(CHANNEL_DIAGNOSTICS) != null ?
139140
channel.parent().attr(CHANNEL_DIAGNOSTICS).get() : null;
140141

141142
StringBuilder error = new StringBuilder();

0 commit comments

Comments
 (0)