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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: