Author: toad
Date: 2008-07-25 23:01:15 +0000 (Fri, 25 Jul 2008)
New Revision: 21409

Modified:
   branches/db4o/freenet/src/freenet/node/FailureTable.java
Log:
Paranoia

Modified: branches/db4o/freenet/src/freenet/node/FailureTable.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/FailureTable.java    2008-07-25 
23:00:48 UTC (rev 21408)
+++ branches/db4o/freenet/src/freenet/node/FailureTable.java    2008-07-25 
23:01:15 UTC (rev 21409)
@@ -279,6 +279,7 @@
         * serialise it, as high latencies can otherwise result.
         */
        protected void innerOnOffer(Key key, PeerNode peer, byte[] 
authenticator) {
+               if(key.getRoutingKey() == null) throw new 
NullPointerException();
                //NB: node.hasKey() executes a datastore fetch
                if(node.hasKey(key)) {
                        Logger.minor(this, "Already have key");


Reply via email to