Author: toad
Date: 2009-01-31 16:01:36 +0000 (Sat, 31 Jan 2009)
New Revision: 25447
Modified:
branches/db4o/freenet/src/freenet/client/FECCodec.java
Log:
Logging
Modified: branches/db4o/freenet/src/freenet/client/FECCodec.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/FECCodec.java 2009-01-31
16:01:17 UTC (rev 25446)
+++ branches/db4o/freenet/src/freenet/client/FECCodec.java 2009-01-31
16:01:36 UTC (rev 25447)
@@ -269,6 +269,8 @@
for(int i = 0; i < dataBlockStatus.length; i++) {
buckets[i] = dataBlockStatus[i];
+ if(buckets[i] == null)
+ throw new NullPointerException("Data
bucket "+i+" is null!");
long sz = buckets[i].size();
if(sz < blockLength) {
throw new IllegalArgumentException("All
buckets must be the full size: caller must pad the last one if needed");
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs