From af9bd7ba002efd433f578682a997d5943a59379f Mon Sep 17 00:00:00 2001 From: AAZIBOU EL GERRAB Nabila <n1aazibo@enib.fr> Date: Fri, 16 Feb 2024 11:39:20 +0100 Subject: [PATCH] =?UTF-8?q?hot=20fix=20dgsant=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../net/ihe/gazelle/tempmodel/decor/dt/utils/DTUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hl7templates/hl7templates-model-jar/src/main/java/net/ihe/gazelle/tempmodel/decor/dt/utils/DTUtils.java b/hl7templates/hl7templates-model-jar/src/main/java/net/ihe/gazelle/tempmodel/decor/dt/utils/DTUtils.java index 628943e..8fbc7ad 100644 --- a/hl7templates/hl7templates-model-jar/src/main/java/net/ihe/gazelle/tempmodel/decor/dt/utils/DTUtils.java +++ b/hl7templates/hl7templates-model-jar/src/main/java/net/ihe/gazelle/tempmodel/decor/dt/utils/DTUtils.java @@ -55,7 +55,7 @@ public final class DTUtils { if (dt == null) { return false; } - String replacedDt = dt.replace(".", "_");; + String replacedDt = dt.replace(".", "_"); String realDT = listDTString.contains(replacedDt) ? replacedDt:dt.split("\\.")[0]; return listDTString.contains(realDT); } @@ -70,7 +70,8 @@ public final class DTUtils { String realDt = getRealDatatype(dataType); if(realDt == null){ - throw new IllegalArgumentException("Datatype "+dataType+" not found in datatypes.xml"); + log.error("Datatype not found in datatypes.xml: {} " , dataType); + return null; } return realDt .replace("_", "") -- GitLab