Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8026250

NPE at jdk.nashorn.internal.runtime.DebugLogger.levelAbove(DebugLogger.java:129)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • core-libs
    • None
    • b113
    • generic
    • generic

      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)
           at jdk.nashorn.internal.runtime.Context.compile(Context.java:887)
           at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:844)
           at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:387)



      Reported by Tal Liron @ nashorn-dev.

            lagergren Marcus Lagergren
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: