Author: toad
Date: 2008-07-25 10:45:58 +0000 (Fri, 25 Jul 2008)
New Revision: 21391

Modified:
   branches/db4o/freenet/src/freenet/support/RandomGrabArray.java
Log:
Fix NPE

Modified: branches/db4o/freenet/src/freenet/support/RandomGrabArray.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/RandomGrabArray.java      
2008-07-25 09:20:43 UTC (rev 21390)
+++ branches/db4o/freenet/src/freenet/support/RandomGrabArray.java      
2008-07-25 10:45:58 UTC (rev 21391)
@@ -196,7 +196,7 @@
                                        ret = null;
                                        // Will be removed in the do{} loop
                                        // Need to tell it first.
-                                       oret.setParentGrabArray(this, null);
+                                       oret.setParentGrabArray(this, 
container);
                                }
                                if(ret != null && excluding.exclude(ret, 
container, context)) {
                                        excluded++;


Reply via email to