Author: saces
Date: 2008-07-27 12:22:55 +0000 (Sun, 27 Jul 2008)
New Revision: 21438

Modified:
   trunk/freenet/src/freenet/node/RequestStarter.java
Log:
key is not known for inserts at this point

Modified: trunk/freenet/src/freenet/node/RequestStarter.java
===================================================================
--- trunk/freenet/src/freenet/node/RequestStarter.java  2008-07-27 11:42:40 UTC 
(rev 21437)
+++ trunk/freenet/src/freenet/node/RequestStarter.java  2008-07-27 12:22:55 UTC 
(rev 21438)
@@ -254,7 +254,9 @@
                public void run() {
                        try {
                    freenet.support.Logger.OSThread.logPID(this);
-                       
stats.reportOutgoingLocalRequestLocation(key.toNormalizedDouble());
+                   // FIXME ? key is not known for inserts here
+                   if (key != null)
+                       
stats.reportOutgoingLocalRequestLocation(key.toNormalizedDouble());
                        if(!req.send(core, sched, keyNum)) {
                                if(!req.isCancelled())
                                        Logger.error(this, "run() not able to 
send a request on "+req);


Reply via email to