Skip to content

Commit

Permalink
[#7375] Fix NPE of ChannelzServerTransportFilter.transportTerminated()
Browse files Browse the repository at this point in the history
  • Loading branch information
emeroad committed Jan 4, 2021
1 parent 8682791 commit 4adb4bc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ private TransportMetadata getTransportMetadata(Attributes transportAttrs) {

@Override
public void transportTerminated(Attributes transportAttrs) {
// transport is not ready
if (transportAttrs == null) {
return;
}
final TransportMetadata transportMetadata = getTransportMetadata(transportAttrs);

final InetSocketAddress remoteAddress = transportMetadata.getRemoteAddress();
Expand Down

0 comments on commit 4adb4bc

Please sign in to comment.