Author: toad
Date: 2008-06-30 14:35:28 +0000 (Mon, 30 Jun 2008)
New Revision: 20874

Modified:
   
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java
Log:
paranoia

Modified: 
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java
===================================================================
--- 
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java  
    2008-06-30 14:06:18 UTC (rev 20873)
+++ 
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java  
    2008-06-30 14:35:28 UTC (rev 20874)
@@ -54,6 +54,7 @@
                this.segment = segment;
                this.retryCount = retryCount;
                this.parent = segment.parent;
+               if(parent == null) throw new NullPointerException();
                ctx = segment.blockFetchContext;
                blockNums = new Vector();
                logMINOR = Logger.shouldLog(Logger.MINOR, this);


Reply via email to