NetDB: Fix early NPE

This commit is contained in:
zzz
2015-06-07 16:29:41 +00:00
parent 9041a2c69f
commit e8f4e19bac

View File

@@ -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);
}
/**