[
https://jira.codehaus.org/browse/SUREFIRE-912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kristian Rosenvold closed SUREFIRE-912.
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.13
Assignee: Kristian Rosenvold
Fixed in 9c6abc2acf75e93f01596683a60c426810c7e7ee, thanks for the patch !
2.12.4 coming "soon"
> A NPE is thrown when some test case fails in the ConcurrentReporterManager
> --------------------------------------------------------------------------
>
> Key: SUREFIRE-912
> URL: https://jira.codehaus.org/browse/SUREFIRE-912
> Project: Maven Surefire
> Issue Type: Bug
> Components: Junit 4.7+ (parallel) support
> Environment: Windows 7
> Reporter: Cristian Vazzolla
> Assignee: Kristian Rosenvold
> Fix For: 2.13
>
> Attachments: ConcurrentReporterManager.patch, log_bug_surefire.txt
>
>
> When using JUnit categories for testing some of the tests that fail will
> result in a NULL pointer exception being thrown from the
> ConcurrentReporterManager class and this breaks the surefire plugin execution
> so the tests that follow this will not get executed anymore.
> The root cause of the problem is that in the testFailed method the
> getOrCreateTestMethod method is called which on one of the flows returns null
> which is not treated in the testFailed method and gives a null pointer
> exception.
> I've created a patch for this issue in which I've modified the testFailed and
> the testAssumptionFailure methods to treat nicely the case when null is
> returned from getOrCreateTestMethod.
> I've also attached the log file with the exception.
> I have not included any test because this issue happens randomly not on a
> particular test case.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira