Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903780

NPE in new code for LIBRARY.properties

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      java.lang.NullPointerException: Cannot invoke "com.sun.javatest.regtest.config.Locations$LibLocn.isTest()" because "this.libLocn" is null
         at com.sun.javatest.regtest.exec.CompileAction.run(CompileAction.java:369)
         at com.sun.javatest.regtest.exec.RegressionScript.run(RegressionScript.java:267)
         at com.sun.javatest.Script.run(Script.java:431)
         at com.sun.javatest.DefaultTestRunner.runTest(DefaultTestRunner.java:183)
         at com.sun.javatest.DefaultTestRunner$1.run(DefaultTestRunner.java:76)


      this line needs to check field libLocn for null: https://github.com/openjdk/jtreg/blob/e9bb12e48d7d58839404cc7b077ab7bf8b0cacfb/src/share/classes/com/sun/javatest/regtest/exec/CompileAction.java#L369C69-L369C76

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: