mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-05-10 21:27:00 +00:00
NetDB: Fix early NPE
This commit is contained in:
+2
-1
@@ -173,7 +173,8 @@ public class FloodfillNetworkDatabaseFacade extends KademliaNetworkDatabaseFacad
|
||||
* @since 0.7.11
|
||||
*/
|
||||
boolean shouldThrottleLookup(Hash from, TunnelId id) {
|
||||
return _lookupThrottler.shouldThrottle(from, id);
|
||||
// null before startup
|
||||
return _lookupThrottler == null || _lookupThrottler.shouldThrottle(from, id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user