We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80ceead commit ac762fbCopy full SHA for ac762fb
src/main/java/hudson/plugins/robot/model/RobotCaseResult.java
@@ -118,12 +118,14 @@ public long getDuration() {
118
return duration;
119
if (elapsedtime != 0)
120
return Double.valueOf(elapsedtime * 1000).longValue(); // convert seconds to milliseconds
121
- try{
122
- return timeDifference(this.starttime, this.endtime);
123
- } catch (ParseException e){
124
- LOGGER.warn("Couldn't parse duration for test case " + name);
125
- return 0;
+ if (StringUtils.isNotEmpty(this.endtime)) {
+ try {
+ return timeDifference(this.starttime, this.endtime);
+ } catch (ParseException e) {
+ LOGGER.warn("Couldn't parse duration for test case " + name);
126
+ }
127
}
128
+ return 0;
129
130
131
public String getStarttime() {
0 commit comments