From f9c89e4f924a30990d9376879f1e7c3a8c47e3e2 Mon Sep 17 00:00:00 2001 From: sgiannopoulos Date: Wed, 10 Apr 2024 18:17:47 +0300 Subject: [PATCH] bug fix --- .../descriptiontemplate/DescriptionTemplateServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dmp-backend/core/src/main/java/eu/eudat/service/descriptiontemplate/DescriptionTemplateServiceImpl.java b/dmp-backend/core/src/main/java/eu/eudat/service/descriptiontemplate/DescriptionTemplateServiceImpl.java index f8a8b4714..da3a24ef2 100644 --- a/dmp-backend/core/src/main/java/eu/eudat/service/descriptiontemplate/DescriptionTemplateServiceImpl.java +++ b/dmp-backend/core/src/main/java/eu/eudat/service/descriptiontemplate/DescriptionTemplateServiceImpl.java @@ -347,7 +347,10 @@ public class DescriptionTemplateServiceImpl implements DescriptionTemplateServic data.setNumbering(persist.getNumbering()); data.setAdditionalInformation(persist.getAdditionalInformation()); data.setExtendedDescription(persist.getExtendedDescription()); - if (persist.getMultiplicity() != null && persist.getMultiplicity().getMin() != 0 && persist.getMultiplicity().getMax() != 0) + if (persist.getMultiplicity() != null && ( + (persist.getMultiplicity().getMin() != null && persist.getMultiplicity().getMin() != 0) + || (persist.getMultiplicity().getMax() != null && persist.getMultiplicity().getMax() != 0) + )) data.setMultiplicity(this.buildMultiplicityEntity(persist.getMultiplicity())); data.setHasCommentField(persist.getHasCommentField());