Fix Issue#GSO-54
authorLuji7 <lu.ji3@zte.com.cn>
Thu, 27 Oct 2016 05:52:01 +0000 (13:52 +0800)
committerLuji7 <lu.ji3@zte.com.cn>
Thu, 27 Oct 2016 05:52:01 +0000 (13:52 +0800)
Change-Id: I5e2f73810dd3e1aa47b46b487a4894a1d98129ef
Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js

index 7dc4279..61f965f 100644 (file)
@@ -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;