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

"Clear Results" on a workdir without annotations throws NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jt4.1.4
    • jt2.2
    • 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)

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: