Author: toad
Date: 2009-02-24 18:18:13 +0000 (Tue, 24 Feb 2009)
New Revision: 25785
Modified:
branches/db4o/freenet/src/freenet/support/io/BucketTools.java
Log:
Remove paranoia, fixed
Modified: branches/db4o/freenet/src/freenet/support/io/BucketTools.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/io/BucketTools.java
2009-02-24 18:16:14 UTC (rev 25784)
+++ branches/db4o/freenet/src/freenet/support/io/BucketTools.java
2009-02-24 18:18:13 UTC (rev 25785)
@@ -442,8 +442,6 @@
public static Bucket pad(Bucket oldBucket, int blockLength,
BucketFactory bf, int length) throws IOException {
byte[] hash = BucketTools.hash(oldBucket);
Bucket b = bf.makeBucket(blockLength);
- if(b == null) // YES THIS HAS HAPPENED! FIXME
- throw new NullPointerException("Bucket of length
"+blockLength+" returned from "+bf+" is null!");
MersenneTwister mt = new MersenneTwister(hash);
OutputStream os = b.getOutputStream();
try {
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs