Author: toad
Date: 2008-10-09 13:09:50 +0000 (Thu, 09 Oct 2008)
New Revision: 22976
Modified:
branches/db4o/freenet/src/freenet/client/async/BaseSingleFileFetcher.java
Log:
Try to catch null on creation
Modified:
branches/db4o/freenet/src/freenet/client/async/BaseSingleFileFetcher.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/BaseSingleFileFetcher.java
2008-10-09 11:53:40 UTC (rev 22975)
+++ branches/db4o/freenet/src/freenet/client/async/BaseSingleFileFetcher.java
2008-10-09 13:09:50 UTC (rev 22976)
@@ -43,6 +43,8 @@
this.maxRetries = maxRetries;
this.key = key;
this.ctx = ctx;
+ if(ctx == null) throw new NullPointerException();
+ if(key == null) throw new NullPointerException();
cooldownWakeupTime = -1;
}