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

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

fix BuildHandler NPE from previous checkin

parent 9247dc89
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ public class RouterVersion { ...@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */ /** deprecated */
public final static String ID = "Monotone"; public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION; public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 6; public final static long BUILD = 7;
/** for example "-test" */ /** for example "-test" */
public final static String EXTRA = ""; public final static String EXTRA = "";
......
...@@ -866,7 +866,7 @@ class BuildHandler implements Runnable { ...@@ -866,7 +866,7 @@ class BuildHandler implements Runnable {
if (accept) { if (accept) {
// early request throttle check, before queueing and decryption // early request throttle check, before queueing and decryption
Hash fh = fromHash; Hash fh = fromHash;
if (fh == null) if (fh == null && from != null)
fh = from.calculateHash(); fh = from.calculateHash();
if (fh != null && _requestThrottler.shouldThrottle(fh)) { if (fh != null && _requestThrottler.shouldThrottle(fh)) {
if (_log.shouldLog(Log.WARN)) if (_log.shouldLog(Log.WARN))
......
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