"Clear Results" on a workdir without annotations throws NPE

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • jt4.1.4
    • Affects Version/s: jt2.2
    • Component/s: tools
    • b07
    • b10
    • x86
    • windows_xp
    • Verified

      Javatest 4.1.4_b07

      - Start the tool. Open a sample testsuite. A working directory (with some results).
      - Or just create a fresh Working Directory and run some tests to get results.
      - Right click on any test. Select "Clear Results"

      Result is not cleared, NullPointerException in the console:
      Exception in thread "Thread-5" java.lang.NullPointerException
      at com.sun.javatest.WorkDirectory.saveAnnotations(WorkDirectory.java:962)
      at com.sun.javatest.WorkDirectory.clearAnnotations(WorkDirectory.java:896)
      at com.sun.javatest.TRT_TreeNode.resetTest(TRT_TreeNode.java:669)
      at com.sun.javatest.TestResultTable.resetTest(TestResultTable.java:1243)
      at com.sun.javatest.TestResultTable.resetTest(TestResultTable.java:1303)
      at com.sun.javatest.WorkDirectory.purge(WorkDirectory.java:886)
      at com.sun.javatest.exec.TestTreePanel$1.run(TestTreePanel.java:444)

            Assignee:
            Brian Kurotsuchi (Inactive)
            Reporter:
            Konstantin Romanovskiy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: