forked from I2P_Developers/i2p.i2p
NetDb: add a null check for client so we don't try to look up a null client in the router-wide netDb
This commit is contained in:
@@ -700,7 +700,8 @@ class NetDbRenderer {
|
||||
leases.addAll(netdb.getLeases());
|
||||
LeaseSet myLeaseSet = new LeaseSet();
|
||||
if (leases.size() > 0)
|
||||
myLeaseSet = netdb.lookupLeaseSetLocally(client);
|
||||
if (client != null)
|
||||
myLeaseSet = netdb.lookupLeaseSetLocally(client);
|
||||
int medianCount = 0;
|
||||
int rapCount = 0;
|
||||
BigInteger median = null;
|
||||
|
||||
Reference in New Issue
Block a user