diff options
author | Steve Smokowski <ss835w@att.com> | 2019-03-23 15:32:15 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-03-23 15:32:15 +0000 |
commit | 7815bcec2a85b023f3004e698712cea7fed2f94e (patch) | |
tree | 5e0ecf2ea4a03c72cb3bdfb5bdd375e80ea93d3a /mso-catalog-db | |
parent | 76219c97a86150dbe2d9c5dd439e0faa1637e8b1 (diff) | |
parent | 70252f03c8c2b3e7ae17ea9963d20a93370390e2 (diff) |
Merge "Fix a NullPointerException on getting no data from"
Diffstat (limited to 'mso-catalog-db')
-rw-r--r-- | mso-catalog-db/src/main/java/org/onap/so/db/catalog/client/CatalogDbClient.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mso-catalog-db/src/main/java/org/onap/so/db/catalog/client/CatalogDbClient.java b/mso-catalog-db/src/main/java/org/onap/so/db/catalog/client/CatalogDbClient.java index 2faac31f2d..3e35e78e7a 100644 --- a/mso-catalog-db/src/main/java/org/onap/so/db/catalog/client/CatalogDbClient.java +++ b/mso-catalog-db/src/main/java/org/onap/so/db/catalog/client/CatalogDbClient.java @@ -808,10 +808,12 @@ public class CatalogDbClient { public VnfVfmoduleCvnfcConfigurationCustomization getVnfVfmoduleCvnfcConfigurationCustomizationByVnfCustomizationUuidAndVfModuleCustomizationUuidAndCvnfcCustomizationUuid( String vnfCustomizationUuid, String vfModuleCustomizationUuid, String cvnfcCustomizationUuid) { CvnfcCustomization cvnfc = getCvnfcCustomizationByCustomizationUUID(cvnfcCustomizationUuid); - for(VnfVfmoduleCvnfcConfigurationCustomization vnfVfModuleCvnfcCust: cvnfc.getVnfVfmoduleCvnfcConfigurationCustomization()){ - if(vnfVfModuleCvnfcCust.getVnfResourceCustomization().getModelCustomizationUUID().equals(vnfCustomizationUuid) && + if (cvnfc != null) { + for(VnfVfmoduleCvnfcConfigurationCustomization vnfVfModuleCvnfcCust: cvnfc.getVnfVfmoduleCvnfcConfigurationCustomization()){ + if(vnfVfModuleCvnfcCust.getVnfResourceCustomization().getModelCustomizationUUID().equals(vnfCustomizationUuid) && vnfVfModuleCvnfcCust.getVfModuleCustomization().getModelCustomizationUUID().equals(vfModuleCustomizationUuid)){ return vnfVfModuleCvnfcCust; + } } } return null; |