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:
eyedeekay
2024-10-26 23:21:52 -04:00
parent ef33998a71
commit f861886bef

View File

@@ -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;