Author: toad
Date: 2008-03-25 00:50:53 +0000 (Tue, 25 Mar 2008)
New Revision: 18766
Modified:
trunk/freenet/src/freenet/node/LocationManager.java
Log:
Doh - fix NPE
Modified: trunk/freenet/src/freenet/node/LocationManager.java
===================================================================
--- trunk/freenet/src/freenet/node/LocationManager.java 2008-03-25 00:50:14 UTC
(rev 18765)
+++ trunk/freenet/src/freenet/node/LocationManager.java 2008-03-25 00:50:53 UTC
(rev 18766)
@@ -750,7 +750,10 @@
this.incomingID = id;
this.outgoingID = outgoingID;
requestSender = from;
- bootID = requestSender.getBootID();
+ if(from == null)
+ bootID = -1;
+ else
+ bootID = requestSender.getBootID();
routedTo = to;
addedTime = System.currentTimeMillis();
lastMessageTime = addedTime;