From 5b9935984e41e4ff3df4655060e4669cc572bc23 Mon Sep 17 00:00:00 2001 From: Luji7 Date: Thu, 27 Oct 2016 13:52:01 +0800 Subject: Fix Issue#GSO-54 Change-Id: I5e2f73810dd3e1aa47b46b487a4894a1d98129ef Signed-off-by: Luji7 --- .../portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openo-portal/portal-lifecyclemgr/src/main') diff --git a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js index 7dc4279a..61f965fc 100644 --- a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js +++ b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js @@ -184,6 +184,11 @@ function fetchGsoNestingTemplateParameters(templateId) { nestingParasAggregatation.notify(oneNodeParameters); }); serviceTemplates.forEach(function(serviceTemplate) { + if(serviceTemplate === undefined || serviceTemplate.inputs === undefined || serviceTemplate.csarId === undefined) + { + nodeAggregatation.notify([]); + return; + } var inputs = serviceTemplate.inputs.map(function(input) { input.name = nodeTemplate.type + '.' + input.name; return input; -- cgit 1.2.3-korg