Skip to content

Commit

Permalink
Fix NPE in TestRunSession.toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Feb 5, 2025
1 parent 31bb835 commit ad50c26
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,10 @@ private void addFailures(Collection<TestElement> failures, TestElement testEleme

@Override
public String toString() {
Instant startTime = getStartTime();
if (startTime == null) {
return fTestRunName + " (not started)"; //$NON-NLS-1$
}
return fTestRunName + " " + DateFormat.getDateTimeInstance().format(new Date(fStartTime.toEpochMilli())); //$NON-NLS-1$
}

Expand Down

0 comments on commit ad50c26

Please sign in to comment.