You are viewing a plain text version of this content. The canonical link for it is here.
Posted to surefire-dev@maven.apache.org by "Carlos Sanchez (JIRA)" <ji...@codehaus.org> on 2005/11/23 03:56:06 UTC
[jira] Reopened: (SUREFIRE-11) XMLReporter crashes in testFailed when report.getThrowable().getMessage() is null
[ http://jira.codehaus.org/browse/SUREFIRE-11?page=all ]
Carlos Sanchez reopened SUREFIRE-11:
------------------------------------
This patch is not enough, also testFailed and testError needs to be modified
> 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: Allan Ramirez
> 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