Fix for possibly nil benchmarks table

This commit is contained in:
emanuele-f 2019-12-31 11:39:05 +01:00
parent 1789543037
commit 3580ddbd02
2 changed files with 2 additions and 2 deletions

View file

@ -362,7 +362,7 @@ function user_scripts.getLastBenchmark(ifid, subdir)
if(not isEmptyString(scripts_benchmarks)) then
scripts_benchmarks = json.decode(scripts_benchmarks)
else
scripts_benchmarks = nil
scripts_benchmarks = {}
end
return(scripts_benchmarks)