removed empty parentheses when no inputs 21/48021/2
authorkaty.rotman <katy.rotman@amdocs.com>
Thu, 17 May 2018 09:26:49 +0000 (12:26 +0300)
committerOren Kleks <orenkle@amdocs.com>
Thu, 17 May 2018 10:34:25 +0000 (10:34 +0000)
Issue-ID: SDC-1337
Change-Id: I2919a02dd83c113c3a2ca4a80274fa8dd313e17d
Signed-off-by: katy.rotman <katy.rotman@amdocs.com>
catalog-be/src/main/java/org/openecomp/sdc/be/tosca/utils/InterfacesOperationsToscaUtil.java

index 85b2d17..5a8aa7e 100644 (file)
@@ -179,7 +179,8 @@ public class InterfacesOperationsToscaUtil {
 
     private static void fillToscaOperationInputs(OperationDataDefinition operation,
             ToscaLifecycleOperationDefinition toscaOperation) {
-        if (Objects.isNull(operation.getInputs())) {
+        if (Objects.isNull(operation.getInputs()) || operation.getInputs().isEmpty()) {
+            toscaOperation.setInputs(null);
             return;
         }
         Map<String, ToscaProperty> toscaInputs = new HashMap<>();