Fix null check for groups.
Change-Id: I2432707e4a6dc6bfe49d23eddc9318562c2c43b3
Issue-ID: SO-1393
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
// 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()) {