ReporterManager stdOutLog variable not initialized if test fails in setup
-------------------------------------------------------------------------
Key: SUREFIRE-17
URL: http://jira.codehaus.org/browse/SUREFIRE-17
Project: surefire
Type: Bug
Versions: 1.4
Reporter: Barry Kaplan
Assigned to: Jason van Zyl
When a test fails during setup, or inside the suite method,
org.codehaus.surefire.report.ReporterManager will throw a NPE in method
testFailed(ReportEntry, String typeError) at line 344. This is because
stdOutLog and stdErrLog are not initialized until the testStarting(ReportEntry)
method is called.
These variables are never disposed, so they may as well be initialized as part
of ReporterManager construction.
--
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