From eb0f91ece739be8c15bd42306a0e3b5609dbb9c0 Mon Sep 17 00:00:00 2001 From: eyedeekay Date: Tue, 17 Oct 2023 11:48:49 -0400 Subject: [PATCH] Router: fix broken null check in shouldThrottleBurstLookup --- .../networkdb/kademlia/FloodfillNetworkDatabaseFacade.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/java/src/net/i2p/router/networkdb/kademlia/FloodfillNetworkDatabaseFacade.java b/router/java/src/net/i2p/router/networkdb/kademlia/FloodfillNetworkDatabaseFacade.java index a1f015aa3b..9835e4311b 100644 --- a/router/java/src/net/i2p/router/networkdb/kademlia/FloodfillNetworkDatabaseFacade.java +++ b/router/java/src/net/i2p/router/networkdb/kademlia/FloodfillNetworkDatabaseFacade.java @@ -258,7 +258,7 @@ boolean shouldThrottleLookup(Hash from, TunnelId id) { boolean shouldThrottleBurstLookup(Hash from, TunnelId id) { // null before startup - return _lookupThrottler == null || _lookupThrottlerBurst.shouldThrottle(from, id); + return _lookupThrottlerBurst == null || _lookupThrottlerBurst.shouldThrottle(from, id); } /**