From a4c1c763eeb890ff8187eb28ab2bc00f2901f7ee Mon Sep 17 00:00:00 2001 From: talio Date: Wed, 5 Jun 2019 16:11:11 +0300 Subject: Fix static list value issue Change-Id: I976404e172aae756248cb4e3fe367e1c00c72168 Issue-ID: SDC-2355 Signed-off-by: talio --- .../src/main/java/org/openecomp/sdc/be/model/DataTypeDefinition.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'catalog-model') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/DataTypeDefinition.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/DataTypeDefinition.java index 4dc952d59b..a54e3264e2 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/DataTypeDefinition.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/DataTypeDefinition.java @@ -20,6 +20,7 @@ package org.openecomp.sdc.be.model; +import org.openecomp.sdc.be.dao.utils.CollectionUtils; import org.openecomp.sdc.be.datatypes.elements.DataTypeDataDefinition; import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition; @@ -55,6 +56,10 @@ public class DataTypeDefinition extends DataTypeDataDefinition { return constraints; } + public List safeGetConstraints() { + return CollectionUtils.safeGetList(constraints); + } + public void setConstraints(List constraints) { this.constraints = constraints; } -- cgit 1.2.3-korg