fix npe on trace msg (#6934)

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
pull/6941/head
Gabriel Fukushima 8 months ago committed by GitHub
parent 5858a8b707
commit 3c54da63dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthPeers.java

@ -384,7 +384,7 @@ public class EthPeers {
.anyMatch(c -> !c.isDisconnected() && (!inbound || (inbound && c.inboundInitiated())))) { .anyMatch(c -> !c.isDisconnected() && (!inbound || (inbound && c.inboundInitiated())))) {
LOG.atTrace() LOG.atTrace()
.setMessage("not connecting to peer {} - new connection already in process") .setMessage("not connecting to peer {} - new connection already in process")
.addArgument(ethPeer.getLoggableId()) .addArgument(peer.getLoggableId())
.log(); .log();
return false; return false;
} }

Loading…
Cancel
Save