[freenet-cvs] r12174 - trunk/freenet/src/freenet/crypt
nextgens at freenetproject.org
nextgens at freenetproject.org
Sat Mar 17 12:27:40 UTC 2007
Author: nextgens
Date: 2007-03-17 12:27:39 +0000 (Sat, 17 Mar 2007)
New Revision: 12174
Modified:
trunk/freenet/src/freenet/crypt/SHA256.java
Log:
We don't want such errors to be possible: http://dark-code.bulix.org/2feikg-36209
Modified: trunk/freenet/src/freenet/crypt/SHA256.java
===================================================================
--- trunk/freenet/src/freenet/crypt/SHA256.java 2007-03-17 12:22:29 UTC (rev 12173)
+++ trunk/freenet/src/freenet/crypt/SHA256.java 2007-03-17 12:27:39 UTC (rev 12174)
@@ -335,12 +335,12 @@
return MessageDigest.getInstance("SHA-256");
} catch (NoSuchAlgorithmException e2) {
//TODO: maybe we should point to a HOWTO for freejvms
- Logger.error(Node.class, "Check your JVM settings especially the JCE!"+e2);
- System.err.println("Check your JVM settings especially the JCE!"+e2);
- e2.printStackTrace();
- WrapperManager.stop(Node.EXIT_CRAPPY_JVM);
+ Logger.error(Node.class, "Check your JVM settings especially the JCE!"+e2);
+ System.err.println("Check your JVM settings especially the JCE!"+e2);
+ e2.printStackTrace();
}
- return null;
+ WrapperManager.stop(Node.EXIT_CRAPPY_JVM);
+ throw new RuntimeException();
}
/**
More information about the cvs
mailing list