[FIXED HUDSON-4257] Junit failure error messages and stacktraces should render properly in all cases now.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@20835 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
abayer committed 2009-08-18 17:24:34 +00:00
1 parent d1ab9c5bf5
commit 13432495bb
4 files changed
+54 -9

No files matched your search

@@ -171,15 +171,18 @@ public class TestResultAction extends AbstractTestResultAction<TestResultAction>
public List<TestAction> getActions(TestObject object) {
List<TestAction> result = new ArrayList<TestAction>();
for (Data data: testData) {
result.addAll(data.getTestAction(object));
}
return Collections.unmodifiableList(result);
}
public void setData(List<Data> testData) {
this.testData = testData;
// Added check for null testData to avoid NPE from issue 4257.
if (testData!=null) {
for (Data data: testData) {
result.addAll(data.getTestAction(object));
}
}
return Collections.unmodifiableList(result);
}
public void setData(List<Data> testData) {
this.testData = testData;
}
/**
* Resolves {@link TestAction}s for the given {@link TestObject}.