Author: toad
Date: 2009-03-26 17:21:56 +0000 (Thu, 26 Mar 2009)
New Revision: 26210
Modified:
branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java
Log:
Don't forget to store(this) - fix NPE
Modified: branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java
2009-03-26 17:10:29 UTC (rev 26209)
+++ branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java
2009-03-26 17:21:56 UTC (rev 26210)
@@ -313,7 +313,10 @@
removeElement(found);
} else {
if(count == 0) Logger.error(this, "Not in parent: "+r+"
for "+this, new Exception("error"));
- else if(persistent) r.removeFrom(container);
+ else if(persistent) {
+ container.store(this);
+ r.removeFrom(container);
+ }
return;
}
}
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs