NBI: Tweak to prevent early context instantiation

This commit is contained in:
zzz
2013-09-30 19:25:21 +00:00
parent e004b0e6e9
commit 32f250003e

View File

@ -112,7 +112,8 @@ public class NativeBigInteger extends BigInteger {
* don't spew log messages. main() below overrides to true.
*/
private static boolean _doLog = System.getProperty("jbigi.dontLog") == null &&
I2PAppContext.getGlobalContext().isRouterContext();
I2PAppContext.getCurrentContext() != null &&
I2PAppContext.getCurrentContext().isRouterContext();
/**
* The following libraries are be available in jbigi.jar in all I2P versions