[freenet-cvs] r20957 - branches/db4o/freenet/src/freenet/client/async
toad at freenetproject.org
toad at freenetproject.org
Fri Jul 4 00:06:38 UTC 2008
Author: toad
Date: 2008-07-04 00:06:38 +0000 (Fri, 04 Jul 2008)
New Revision: 20957
Modified:
branches/db4o/freenet/src/freenet/client/async/PersistentChosenRequest.java
Log:
Paranoia
Modified: branches/db4o/freenet/src/freenet/client/async/PersistentChosenRequest.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/PersistentChosenRequest.java 2008-07-04 00:05:33 UTC (rev 20956)
+++ branches/db4o/freenet/src/freenet/client/async/PersistentChosenRequest.java 2008-07-04 00:06:38 UTC (rev 20957)
@@ -28,6 +28,7 @@
PersistentChosenRequest(ClientRequestSchedulerCore core, SendableRequest req, Object tok, Key key, ClientKey ckey, short prio) {
super(req, tok, key, ckey, prio);
+ if(tok == null) throw new NullPointerException();
hashCode = core.hashCode() ^ req.hashCode() ^ key.hashCode() ^ ckey.hashCode() ^ tok.hashCode();
this.core = core;
}
More information about the cvs
mailing list