Author: toad
Date: 2009-02-14 00:50:45 +0000 (Sat, 14 Feb 2009)
New Revision: 25633
Modified:
branches/db4o/freenet/src/freenet/support/io/PersistentTempBucketFactory.java
Log:
Fix PersistentTempBucketFactory.makeBucket() returning null
Modified:
branches/db4o/freenet/src/freenet/support/io/PersistentTempBucketFactory.java
===================================================================
---
branches/db4o/freenet/src/freenet/support/io/PersistentTempBucketFactory.java
2009-02-13 22:00:58 UTC (rev 25632)
+++
branches/db4o/freenet/src/freenet/support/io/PersistentTempBucketFactory.java
2009-02-14 00:50:45 UTC (rev 25633)
@@ -134,7 +134,8 @@
Bucket rawBucket = null;
if(size == BLOB_SIZE) {
// No need for a DelayedFreeBucket, we handle this
internally (and more efficiently) for blobs.
- return blobFactory.makeBucket();
+ rawBucket = blobFactory.makeBucket();
+ if(rawBucket != null) return rawBucket;
}
if(rawBucket == null)
rawBucket = new
PersistentTempFileBucket(fg.makeRandomFilename(), fg);
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs