Skip to content

Commit e695d57

Browse files
committed
Add check to test if variable is not null
1 parent cd8e049 commit e695d57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)