From 3d57a2b511eadb63bc4e848bc377f9fa872c5b14 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 2 Sep 2021 06:41:41 +1000 Subject: [PATCH] compile fix + release notes --- RELEASE_NOTES.md | 4 ++++ .../main/java/org/hl7/fhir/r5/elementmodel/ParserBase.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index e69de29bb..546922b62 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -0,0 +1,4 @@ +Validator +* fix NPE bug logging terminology server calls +* fix NPE bug validating logical models +* fix problem with Type Name when validating against Logical Models diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/ParserBase.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/ParserBase.java index a0b12d919..46497484d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/ParserBase.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/ParserBase.java @@ -114,7 +114,7 @@ public abstract class ParserBase { if(name.equals(sd.getType()) && (ns == null || ns.equals(FormatUtilities.FHIR_NS)) && !ToolingExtensions.hasExtension(sd, "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace")) return sd; String sns = ToolingExtensions.readStringExtension(sd, "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace"); - if ((name.equals(sd.getType()) || name.equals(sd.getName())) ) && ns != null && ns.equals(sns)) + if ((name.equals(sd.getType()) || name.equals(sd.getName())) && ns != null && ns.equals(sns)) return sd; } }