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

COF throws NPE if mtl is not specified

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • jt4.4
    • jt4.4
    • tools
    • None
    • b10
    • b11
    • generic
    • generic
    • Verified

    Description

      The following valid template stopped working once we switched from Javatest 4.3b20 to Javatest 4.4b10:

      > <JAVA> -cp <javatest.jar> com.sun.javatest.cof.Main -ts <JCK-runtime-7> -o report.cof -xsd <JCK_WORKDIR>

      Now the following NPE is thrown and an empty report.cof is generated:

      Exception in thread "main" java.lang.NullPointerException
              at com.sun.javatest.cof.COFTest.checkLostTestCases(COFTest.java:253)
              at com.sun.javatest.cof.COFTest.<init>(COFTest.java:181)
              at com.sun.javatest.cof.COFTestSuite.write(COFTestSuite.java:141)
              at com.sun.javatest.cof.COFItem.writeCollection(COFItem.java:165)
              at com.sun.javatest.cof.COFItem.write(COFItem.java:141)
              at com.sun.javatest.cof.COFTestSuites.write(COFTestSuites.java:123)
              at com.sun.javatest.cof.COFItem.write(COFItem.java:138)
              at com.sun.javatest.cof.Main.run(Main.java:315)
              at com.sun.javatest.cof.Main.main(Main.java:149)


      Specifying a new argument '-mtl' helps.

      Attachments

        Issue Links

          Activity

            People

              ersh Mikhail Ershov (Inactive)
              ashusher Alexander Shusherov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: