Author: toad
Date: 2008-06-26 23:57:20 +0000 (Thu, 26 Jun 2008)
New Revision: 20805

Modified:
   branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java
Log:
Fix NPE: don't deactivate if we're going to return it.

Modified: branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java      
2008-06-26 23:42:44 UTC (rev 20804)
+++ branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java      
2008-06-26 23:57:20 UTC (rev 20805)
@@ -100,8 +100,6 @@
                                if(persistent)
                                        container.activate(rga, 1);
                                RandomGrabArrayItem item = 
rga.removeRandom(excluding, container, context);
-                               if(persistent) // deactivate to save memory
-                                       container.deactivate(item, 1);
                                if(rga.isEmpty()) {
                                        Object client = rga.getObject();
                                        if(persistent)


Reply via email to