summaryrefslogtreecommitdiffstats
path: root/bpmn/so-bpmn-infrastructure-common
diff options
context:
space:
mode:
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>2019-05-09 15:20:48 +0530
committerSeshu Kumar M <seshu.kumar.m@huawei.com>2019-05-17 14:23:00 +0000
commite91a37899e3ebb1e570eb16db5bb270f6e94e3ae (patch)
tree029bc6d68dd5574a52e7412fda514a70dfd06513 /bpmn/so-bpmn-infrastructure-common
parent24ad9609469cb7325c629e1efcdeec494bfecd7c (diff)
Fix null check for groups
Fix null check for groups. Change-Id: I2432707e4a6dc6bfe49d23eddc9318562c2c43b3 Issue-ID: SO-1393 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
Diffstat (limited to 'bpmn/so-bpmn-infrastructure-common')
-rw-r--r--bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DoCreateResources.groovy2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DoCreateResources.groovy b/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DoCreateResources.groovy
index fd698d486f..c2f0c02a09 100644
--- a/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DoCreateResources.groovy
+++ b/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DoCreateResources.groovy
@@ -134,7 +134,7 @@ public class DoCreateResources extends AbstractServiceTaskProcessor{
// then we would like to add it twice for processing
// e.g. S{ V1{G1, G2, G1}} --> S{ V1{G1, G1, G2}}
if (resource instanceof VnfResource) {
- if (resource.getGroups() != null) {
+ if (resource.getGroupOrder() != null && !StringUtils.isEmpty(resource.getGroupOrder())) {
String[] grpSequence = resource.getGroupOrder().split(",")
for (String grpType in grpSequence) {
for (GroupResource gResource in resource.getGroups()) {