Author: toad
Date: 2008-06-26 23:26:46 +0000 (Thu, 26 Jun 2008)
New Revision: 20801

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

Modified: branches/db4o/freenet/src/freenet/support/RandomGrabArray.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/RandomGrabArray.java      
2008-06-26 23:14:26 UTC (rev 20800)
+++ branches/db4o/freenet/src/freenet/support/RandomGrabArray.java      
2008-06-26 23:26:46 UTC (rev 20801)
@@ -150,7 +150,8 @@
                                                }
                                                if(valid == 0 && exclude == 0) {
                                                        index = 0;
-                                                       container.set(this);
+                                                       if(persistent)
+                                                               
container.set(this);
                                                        if(logMINOR) 
Logger.minor(this, "No valid or excluded items");
                                                        return null;
                                                } else if(valid == 0) {


Reply via email to