Not in this case. But in any case, Logger.getLevel may very well return
null by its implementation and documentation.
On 10/09/2013 03:53 PM, Jim Laskey (Oracle) wrote:
Are you multi-threading?
On 2013-10-09, at 8:43 AM, Tal Liron wrote:
The code uses Logger.getLevel(), but doesn't take in
Are you multi-threading?
On 2013-10-09, at 8:43 AM, Tal Liron wrote:
> The code uses Logger.getLevel(), but doesn't take into account that the value
> could be null. Exception trace:
>
> java.lang.NullPointerException
>at
> jdk.nashorn.internal.runtime.DebugLogger.levelAbove(DebugLogger.
The code uses Logger.getLevel(), but doesn't take into account that the
value could be null. Exception trace:
java.lang.NullPointerException
at
jdk.nashorn.internal.runtime.DebugLogger.levelAbove(DebugLogger.java:129)
at jdk.nashorn.internal.codegen.Compiler.compile(Compiler.java:352)