Skip to content

Commit 2fd0f76

Browse files
author
cbiselli
committed
fix php error
1 parent 94a0345 commit 2fd0f76

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

www/include/JsonResultGenerator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ public function medianRunDataArray($testRunResults)
226226
*/
227227
public function runDataArray($testRunResults)
228228
{
229+
if (!$testRunResults) {
230+
return [];
231+
}
232+
229233
$runInfo = $this->basicRunInfoArray($testRunResults);
230234
$numSteps = $testRunResults->countSteps();
231235

0 commit comments

Comments
 (0)