From 8a82695f11856c939c181a918e08a8799cac8442 Mon Sep 17 00:00:00 2001 From: Dario Del Piano Date: Fri, 18 May 2018 21:42:25 +0100 Subject: [PATCH] fix/799: aspectConfiguration additional check in case not defined in the experiment --- src/main/webapp/js/geppettoProject/ProjectsController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/js/geppettoProject/ProjectsController.js b/src/main/webapp/js/geppettoProject/ProjectsController.js index 87e6f1e3e..b53106534 100644 --- a/src/main/webapp/js/geppettoProject/ProjectsController.js +++ b/src/main/webapp/js/geppettoProject/ProjectsController.js @@ -84,7 +84,7 @@ define(function (require) { dataType == GEPPETTO.Resources.STATE_VARIABLE && experiments[j].status == GEPPETTO.Resources.ExperimentStatus.COMPLETED || dataType == GEPPETTO.Resources.PARAMETER ){ - if (experiments[j].aspectConfigurations[0] != undefined) { + if (experiments[j].aspectConfigurations != null ? (experiments[j].aspectConfigurations[0] != undefined ? true : false) : false) { dataSource = (dataType == GEPPETTO.Resources.STATE_VARIABLE) ? experiments[j].aspectConfigurations[0].watchedVariables : experiments[j].aspectConfigurations[0].modelParameter;