Author: toad
Date: 2008-07-17 21:33:20 +0000 (Thu, 17 Jul 2008)
New Revision: 21190
Modified:
branches/db4o/freenet/src/freenet/client/async/ClientRequester.java
Log:
Paranoia
Modified: branches/db4o/freenet/src/freenet/client/async/ClientRequester.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/ClientRequester.java
2008-07-17 21:33:10 UTC (rev 21189)
+++ branches/db4o/freenet/src/freenet/client/async/ClientRequester.java
2008-07-17 21:33:20 UTC (rev 21190)
@@ -30,6 +30,8 @@
protected ClientRequester(short priorityClass, RequestClient client) {
this.priorityClass = priorityClass;
this.client = client;
+ if(client == null)
+ throw new NullPointerException();
hashCode = super.hashCode(); // the old object id will do fine,
as long as we ensure it doesn't change!
}