diff options
Diffstat (limited to 'openecomp-be/lib/openecomp-tosca-lib')
-rw-r--r-- | openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/DataModelUtil.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/DataModelUtil.java b/openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/DataModelUtil.java index 28b9c67591..49ea45e8c8 100644 --- a/openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/DataModelUtil.java +++ b/openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/DataModelUtil.java @@ -719,6 +719,10 @@ public class DataModelUtil { mdcDataDebugMessage.debugEntryMessage(null, null); + if(Objects.isNull(type) && Objects.isNull(description) && CollectionUtils.isEmpty(constraints)){ + return null; + } + EntrySchema entrySchema = new EntrySchema(); entrySchema.setType(type); entrySchema.setDescription(description); |