Author: toad
Date: 2006-10-02 18:32:43 +0000 (Mon, 02 Oct 2006)
New Revision: 10589

Modified:
   trunk/freenet/src/freenet/client/async/SingleFileInserter.java
Log:
Try to catch NPE

Modified: trunk/freenet/src/freenet/client/async/SingleFileInserter.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SingleFileInserter.java      
2006-10-01 19:22:36 UTC (rev 10588)
+++ trunk/freenet/src/freenet/client/async/SingleFileInserter.java      
2006-10-02 18:32:43 UTC (rev 10589)
@@ -99,7 +99,8 @@
                                }
                        }
                }
-               if(block.getData().size() > COMPRESS_OFF_THREAD_LIMIT) {
+               Bucket data = block.getData();
+               if(data.size() > COMPRESS_OFF_THREAD_LIMIT) {
                        // Run off thread
                        OffThreadCompressor otc = new OffThreadCompressor();
                        Thread t = new Thread(otc, "Compressor for "+this);


Reply via email to