forked from I2P_Developers/i2p.i2p
NetDB: Fix early NPE
This commit is contained in:
@@ -173,7 +173,8 @@ public class FloodfillNetworkDatabaseFacade extends KademliaNetworkDatabaseFacad
|
|||||||
* @since 0.7.11
|
* @since 0.7.11
|
||||||
*/
|
*/
|
||||||
boolean shouldThrottleLookup(Hash from, TunnelId id) {
|
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