Author: toad
Date: 2008-10-01 17:11:59 +0000 (Wed, 01 Oct 2008)
New Revision: 22900

Modified:
   branches/db4o/freenet/src/freenet/support/RandomGrabArray.java
Log:
Set to null to tell it its been removed.


Modified: branches/db4o/freenet/src/freenet/support/RandomGrabArray.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/RandomGrabArray.java      
2008-10-01 17:11:42 UTC (rev 22899)
+++ branches/db4o/freenet/src/freenet/support/RandomGrabArray.java      
2008-10-01 17:11:59 UTC (rev 22900)
@@ -201,8 +201,8 @@
                                        if(logMINOR) Logger.minor(this, "Not 
returning because cancelled: "+ret);
                                        ret = null;
                                        // Will be removed in the do{} loop
-                                       // Need to tell it first.
-                                       oret.setParentGrabArray(this, 
container);
+                                       // Tell it that it's been removed first.
+                                       oret.setParentGrabArray(null, 
container);
                                }
                                if(ret != null && excluding.exclude(ret, 
container, context)) {
                                        excluded++;


Reply via email to