mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +00:00
Fix a bug in Peer error logging, found by FindBugs.
This commit is contained in:
@@ -212,7 +212,7 @@ public class Peer {
|
||||
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception {
|
||||
String s;
|
||||
PeerAddress addr = address.get();
|
||||
s = address == null ? "?" : address.toString();
|
||||
s = addr == null ? "?" : addr.toString();
|
||||
if (e.getCause() instanceof ConnectException || e.getCause() instanceof IOException) {
|
||||
// Short message for network errors
|
||||
log.info(s + " - " + e.getCause().getMessage());
|
||||
|
Reference in New Issue
Block a user