r26657 - trunk/freenet/src/freenet/client/async

[email protected]
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: toad
Date: 2009-04-08 18:33:19 +0000 (Wed, 08 Apr 2009)
New Revision: 26657

Modified:
   trunk/freenet/src/freenet/client/async/SingleFileInserter.java
Log:
Fix sdiz's NPE, I wonder if this is the insert bug?


Modified: trunk/freenet/src/freenet/client/async/SingleFileInserter.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SingleFileInserter.java	2009-04-08 16:10:56 UTC (rev 26656)
+++ trunk/freenet/src/freenet/client/async/SingleFileInserter.java	2009-04-08 18:33:19 UTC (rev 26657)
@@ -263,7 +263,7 @@
 					data = fixNotPersistent(data, context);
 				// Just insert it
 				ClientPutState bi =
-					createInserter(parent, data, codecNumber, ctx, cb, metadata, (int)block.getData().size(), -1, getCHKOnly, true, container, context, shouldFreeData);
+					createInserter(parent, data, codecNumber, ctx, cb, metadata, (int)origSize, -1, getCHKOnly, true, container, context, shouldFreeData);
 				if(logMINOR)
 					Logger.minor(this, "Inserting without metadata: "+bi+" for "+this);
 				cb.onTransition(this, bi, container);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.