aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib
diff options
context:
space:
mode:
authorlding7 <liang.ding@intel.com>2018-03-19 14:49:00 +0800
committerOren Kleks <orenkle@amdocs.com>2018-04-09 06:28:39 +0000
commit582b284fa893df52ea11c5dec7f158e53db6df5b (patch)
tree7fd80c1403be7ac2c4e33eafe23139accbd46c7a /openecomp-be/lib/openecomp-sdc-vendor-software-product-lib
parent9a699253cf15450615b3df93ed38a492cbd33d3f (diff)
fix a sonar complaints NullPointerException
a bug from https://sonar.onap.org/project/issues?id=org.openecomp.sdc%3Asdc-main%3A1.2.0-SNAPSHOT&open=AWIFjPcyRGy6eclHC_RW&resolved=false&types=BUG Change-Id: Ibe0e1e457edb4d474ba4a37894f066f5a0b24361 Issue-ID: SDC-1145 Signed-off-by: lding7 <liang.ding@intel.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-vendor-software-product-lib')
-rw-r--r--openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/services/impl/filedatastructuremodule/CandidateServiceImpl.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/services/impl/filedatastructuremodule/CandidateServiceImpl.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/services/impl/filedatastructuremodule/CandidateServiceImpl.java
index b962a79738..4618d28756 100644
--- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/services/impl/filedatastructuremodule/CandidateServiceImpl.java
+++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/services/impl/filedatastructuremodule/CandidateServiceImpl.java
@@ -589,6 +589,7 @@ public class CandidateServiceImpl implements CandidateService {
FilesDataStructure structure, int inx,
Map<String, List<ErrorMessage>> uploadErrors) {
for (HeatStructureTree volume : volumeSet) {
+ Objects.requireNonNull(volume, "volume cannot be null!");
if (inx++ > 0) {
ErrorsUtil.addStructureErrorToErrorMap(SdcCommon.UPLOAD_FILE,
new ErrorMessage(ErrorLevel.WARNING,