From 2aaf531724c4c1f1525e96d851697991cad62231 Mon Sep 17 00:00:00 2001 From: priyanshu Date: Mon, 22 Oct 2018 18:02:14 +0530 Subject: Unable to create operation with only outputs Unable to create operation with only output via No Workflow Option Change-Id: I735b445caa13098ae01441dcedf0a44b162eb7a0 Issue-ID: SDC-1863 Signed-off-by: priyanshu --- .../org/openecomp/sdc/be/datamodel/utils/InterfaceUIDataConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catalog-be/src/main/java') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/datamodel/utils/InterfaceUIDataConverter.java b/catalog-be/src/main/java/org/openecomp/sdc/be/datamodel/utils/InterfaceUIDataConverter.java index 2c058798b7..7fbc56a624 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/datamodel/utils/InterfaceUIDataConverter.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/datamodel/utils/InterfaceUIDataConverter.java @@ -51,7 +51,7 @@ public class InterfaceUIDataConverter { List outputList = outputParams.getListToscaDataDefinition().stream() .map(interfaceOperationParamDataDefinition -> new OperationOutputDefinition( interfaceOperationParamDataDefinition.getName(), - interfaceOperationParamDataDefinition.getMandatory(), + interfaceOperationParamDataDefinition.getMandatory() == null ? false : interfaceOperationParamDataDefinition.getMandatory(), interfaceOperationParamDataDefinition.getType() )).collect(Collectors.toList()); outputList.forEach(outputs::add); -- cgit 1.2.3-korg