I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit e8f4e19b authored by zzz's avatar zzz
Browse files

NetDB: Fix early NPE

parent 9041a2c6
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment