From: KrupaNagabhushan Date: Fri, 4 Dec 2020 12:54:44 +0000 (+0000) Subject: Fix Inputs Value field to allow null value X-Git-Tag: 1.8.1~31 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F116601%2F2;p=sdc.git Fix Inputs Value field to allow null value Issue-ID: SDC-3430 Signed-off-by: KrupaNagabhushan Change-Id: I845aeb2bf380b5661b5c88bc3f00f388a075efbf --- diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/InputsBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/InputsBusinessLogic.java index c99b13a118..69adb90493 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/InputsBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/InputsBusinessLogic.java @@ -268,7 +268,7 @@ public class InputsBusinessLogic extends BaseBusinessLogic { Either isValid = propertyOperation.validateAndUpdatePropertyValue(propertyType, newInput.getDefaultValue(), true, innerType, dataTypes); - String newValue = currentInput.getDefaultValue(); + String newValue = newInput.getDefaultValue(); if (isValid.isRight()) { Boolean res = isValid.right().value(); if (Boolean.FALSE.equals(res)) {