[ 
https://issues.jenkins-ci.org/browse/JENKINS-13034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160074#comment-160074
 ] 

SCM/JIRA link daemon commented on JENKINS-13034:
------------------------------------------------

Code changed in jenkins
User: Bruno P. Kinoshita
Path:
 
src/main/java/hudson/plugins/testlink/result/JUnitCaseClassNameResultSeeker.java
 src/main/java/hudson/plugins/testlink/result/JUnitCaseNameResultSeeker.java
http://jenkins-ci.org/commit/testlink-plugin/fa2debc4f2845115a8e3bc930e8ef22bb9a24039
Log:
  JENKINS-13034 Fixed NPE in case class and case name result seekers, JUnit.





                
> Null Pointer Exception in JUnitCaseNameResultSeeker
> ---------------------------------------------------
>
>                 Key: JENKINS-13034
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13034
>             Project: Jenkins
>          Issue Type: Bug
>          Components: testlink
>    Affects Versions: current
>         Environment: Jenkins 1.454 on Mac OS X 10.7 - up-to-date TestLink 
> built from github master.
>            Reporter: Michael van der Westhuizen
>            Assignee: Bruno P. Kinoshita
>         Attachments: testlink-plugin-npe.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to