Author: toad
Date: 2008-07-24 15:17:39 +0000 (Thu, 24 Jul 2008)
New Revision: 21370
Modified:
branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
Log:
Fix NPE
Modified:
branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
2008-07-24 15:15:33 UTC (rev 21369)
+++ branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
2008-07-24 15:17:39 UTC (rev 21370)
@@ -353,7 +353,7 @@
if(logMINOR) Logger.minor(this, "Starting request:
"+this);
ClientKeyBlock b = (ClientKeyBlock) req.token;
if(b != null)
- core.realPut(b, ctx.cacheLocalRequests);
+ core.realPut(b, req.cacheLocalRequests);
else {
Logger.error(this, "Asked to send empty block
on "+this, new Exception("error"));
return false;