mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 14:50:57 +01:00
Fix a bug in Peer error logging, found by FindBugs.
This commit is contained in:
parent
3680c7f52f
commit
8540f879bd
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue