Null Pointer Exception in JUnitCaseNameResultSeeker

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: testlink-plugin
    • None
    • Environment:
      Jenkins 1.454 on Mac OS X 10.7 - up-to-date TestLink built from github master.

      In our case, testCase.getSuiteResult() returns a null pointer, so when it's called in getJUnitNotes to get the suite timestamp we get a null pointer exception.

      I've got around this by changing the call to:
      (testCase.getSuiteResult() != null ? testCase.getSuiteResult().getTimestamp() : null)

      Please see the attached patch, which allows us to correctly integrate with TestLink.

            Assignee:
            Bruno P. Kinoshita
            Reporter:
            Michael van der Westhuizen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: