simple error condition check

This commit is contained in:
jrandom
2004-07-20 03:28:43 +00:00
committed by zzz
parent e8e8c37496
commit fe28b2732c

View File

@ -213,6 +213,10 @@ class StoreJob extends JobImpl {
long token = getContext().random().nextLong(I2NPMessage.MAX_ID_VALUE);
TunnelId replyTunnelId = selectInboundTunnel();
if (replyTunnelId == null) {
_log.error("No reply inbound tunnels available!");
return;
}
TunnelInfo replyTunnel = getContext().tunnelManager().getTunnelInfo(replyTunnelId);
if (replyTunnel == null) {
_log.error("No reply inbound tunnels available!");