[ http://jira.codehaus.org/browse/SUREFIRE-11?page=all ] Carlos Sanchez closed SUREFIRE-11: ----------------------------------
Resolution: Fixed > XMLReporter crashes in testFailed when report.getThrowable().getMessage() is > null > --------------------------------------------------------------------------------- > > Key: SUREFIRE-11 > URL: http://jira.codehaus.org/browse/SUREFIRE-11 > Project: surefire > Type: Bug > Environment: Windows, Maven 2.0 > Reporter: Duane Homick > Assignee: Carlos Sanchez > Priority: Critical > Fix For: 1.5 > Attachments: SUREFIRE-11.patch > > > String message = > StringUtils.replace(report.getThrowable().getMessage(),"<","<"); > can be null if getMessage() on throwable is null. This leads to the > line: > failure.setAttribute("message", message); > being called with message = null. > Possible fixes: > String message = StringUtils.replace(report.getMessage(),"<","<"); > Instead of using the getMessage() on throwable. > Alternatively, check that message is not null before writing that element to > the xml (and write something different instead). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira