@@ -75,7 +75,9 @@
int[] counts = new int[Status.NUM_STATES];
for (TestResult tr: r) {
table.addRow(index, tr.getTestName(), tr);
- counts[tr.getStatus().getType()]++;
+ if (tr.getStatus() != null) {
+ counts[tr.getStatus().getType()]++;
+ }
}
testCounts.add(counts);
}
@@ -105,8 +105,8 @@
String line;
while ((line = in.readLine()) != null) {
int sp = line.indexOf(' ');
- String t = line.substring(0, sp);
- Status s = Status.parse(line.substring(sp).trim());
+ String t = line.substring(0, sp == -1 ? line.length() : sp);
+ Status s = Status.parse(line.substring(sp == -1 ? line.length() : sp).trim());
TestDescription td = new TestDescription(root, new File(t), Collections.emptyMap());
TestResult tr = new TestResult(td, s);
list.add(tr);