summaryrefslogtreecommitdiffstats
path: root/catalog-model/src/main
diff options
context:
space:
mode:
authortalio <tali.orenbach@amdocs.com>2019-06-05 16:11:11 +0300
committerAvi Gaffa <avi.gaffa@amdocs.com>2019-06-06 08:43:50 +0000
commita4c1c763eeb890ff8187eb28ab2bc00f2901f7ee (patch)
tree92b38f6aae6a90bd11a24e6b293f7b88296af254 /catalog-model/src/main
parent70cd3ef0d7d6b88a5de45ef0cf252d06e9e7b5c2 (diff)
Fix static list value issue
Change-Id: I976404e172aae756248cb4e3fe367e1c00c72168 Issue-ID: SDC-2355 Signed-off-by: talio <tali.orenbach@amdocs.com>
Diffstat (limited to 'catalog-model/src/main')
-rw-r--r--catalog-model/src/main/java/org/openecomp/sdc/be/model/DataTypeDefinition.java5
1 files changed, 5 insertions, 0 deletions
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<PropertyConstraint> safeGetConstraints() {
+ return CollectionUtils.safeGetList(constraints);
+ }
+
public void setConstraints(List<PropertyConstraint> constraints) {
this.constraints = constraints;
}