Re: Bug report: NPE in DebugLogger.levelAbove

2013-10-09 Thread Tal Liron
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

Re: Bug report: NPE in DebugLogger.levelAbove

2013-10-09 Thread Jim Laskey (Oracle)
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.

Bug report: NPE in DebugLogger.levelAbove

2013-10-08 Thread Tal Liron
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)