GetSpecificationVersion can sometime return null and throw an NPE, which was not being caught
Closed this issue · 1 comments
RobAustin commented
When using vaNPE with the following version:
Stacktrace:
Exception in thread "main" java.lang.ExceptionInInitializerError
at net.openhft.chronicle.core.UnsafeMemory.(UnsafeMemory.java:73)
at com.**.<…>
Caused by: java.lang.NullPointerException
at net.openhft.chronicle.core.Bootstrap.getMajorVersion0(Bootstrap.java:112)
at net.openhft.chronicle.core.Bootstrap.(Bootstrap.java:69)
... 21 more
dpisklov commented
It's actually not fixed unfortunately - the fix has an issue in it. Because Bootstrap#getMajorVersion0()
is called from Jvm class initializer, accessing Jvm.warn() throws NPE as well - there either must be no logging or logging should use System.err.println