EA-25411 - NPE: TestNGConsoleView.finish

This commit is contained in:
anna
2011-02-10 17:21:57 +01:00
parent 1a62374fd6
commit d5debd89ee
@@ -125,7 +125,7 @@ public class TestNGConsoleView extends BaseTestsOutputConsoleView {
}
public void finish() {
if (currentTest != null) {
if (currentTest != null && testNGResults != null) {
final TestProxy failedToStart = testNGResults.getFailedToStart();
if (failedToStart != null) {
currentTest.addChild(failedToStart);