Changeset 6d5678c


Ignore:
Timestamp:
Nov 26, 2011 10:57:23 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
09731ff
Parents:
e4004e6
Message:

pumper NPE fix

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • history.txt

    re4004e6 r6d5678c  
    112011-11-26 zzz
    22  * DCCServer: Socket error log fix
     3  * NTCP: Fix pumper NPE (ticket #555)
    34
    452011-11-23 zzz
  • router/java/src/net/i2p/router/transport/ntcp/EventPumper.java

    re4004e6 r6d5678c  
    616616                // Same stat as in processConnect()
    617617                _context.statManager().addRateData("ntcp.connectFailedTimeoutIOE", 1);
    618                 _transport.markUnreachable(con.getRemotePeer().calculateHash());
     618                RouterIdentity rem = con.getRemotePeer();
     619                if (rem != null)
     620                    _transport.markUnreachable(rem.calculateHash());
    619621            }
    620622            con.close();
Note: See TracChangeset for help on using the changeset viewer.