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

"Clear Results" on a workdir without annotations throws NPE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: jt2.2
    • Fix Version/s: jt4.1.4
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Introduced In Build:
      b07
    • Introduced In Version:
    • Resolved In Build:
      b10
    • CPU:
      x86
    • OS:
      windows_xp
    • Verification:
      Verified

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: