Author: nextgens
Date: 2007-12-05 08:59:59 +0000 (Wed, 05 Dec 2007)
New Revision: 16296
Modified:
trunk/freenet/src/freenet/node/NodeCrypto.java
Log:
Maybe solve the NPE everyone is complaining about
Modified: trunk/freenet/src/freenet/node/NodeCrypto.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeCrypto.java 2007-12-05 00:28:01 UTC
(rev 16295)
+++ trunk/freenet/src/freenet/node/NodeCrypto.java 2007-12-05 08:59:59 UTC
(rev 16296)
@@ -156,9 +156,7 @@
detector = new NodeIPPortDetector(node, node.ipDetector, this);
- anonSetupCipher = new Rijndael(256,256);
- anonSetupCipher.initialize(identityHash);
-
+ anonSetupCipher = new Rijndael(256,256);
} catch (UnsupportedCipherException e) {
throw new Error(e);
} catch (NodeInitException e) {
@@ -195,6 +193,7 @@
throw new IOException();
}
identityHash = SHA256.digest(myIdentity);
+ anonSetupCipher.initialize(identityHash);
identityHashHash = SHA256.digest(identityHash);
try {