* BOB, SAM, i2psnark: Fix datagram NPE (ticket #1275)

This could only happen on an extremely overloaded router.
This commit is contained in:
zzz
2014-05-13 18:45:54 +00:00
parent 197be5f60f
commit 8480a204ea
5 changed files with 13 additions and 3 deletions

View File

@ -1536,6 +1536,8 @@ public class KRPC implements I2PSessionMuxedListener, DHT {
// TODO throttle
try {
byte[] payload = session.receiveMessage(msgId);
if (payload == null)
return;
_rxPkts.incrementAndGet();
_rxBytes.addAndGet(payload.length);
if (toPort == _qPort) {