From 9fae5714129be8fe6e215a742ca556c2c59ff37e Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Mon, 11 Dec 2023 15:37:14 +1100 Subject: [PATCH] fix NPE in CDA check --- .../src/main/java/org/hl7/fhir/r5/elementmodel/Property.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/Property.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/Property.java index 720606484..128c7ce45 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/Property.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/Property.java @@ -447,7 +447,7 @@ public class Property { private boolean isCDAElement(StructureDefinition sd) { - return sd.getUrl().startsWith(Constants.NS_CDA_ROOT); + return sd.hasUrl() && sd.getUrl().startsWith(Constants.NS_CDA_ROOT); }