diff --git a/src/main/webapp/js/main.js b/src/main/webapp/js/main.js index 43b7569..cca2212 100644 --- a/src/main/webapp/js/main.js +++ b/src/main/webapp/js/main.js @@ -780,7 +780,8 @@ buildAlgortihmList = function() { $("#algorithm-params-div").empty(); for (var i = 0; i < jsonContent.output.result.length; i++) { - if (jsonContent.output.result[i] === undefined) { + if (typeof jsonContent.output.result[i] === 'undefined' + || jsonContent.output.result[i] == null) { console.log("No result for " + i); } else { var cb = "