From 2e7e277c97e6a1833dd3ea928052fb75803480fd Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 17 Sep 2020 15:42:03 +1000 Subject: [PATCH] Prevent NPE resolving resource in batch --- .../src/main/java/org/hl7/fhir/r5/renderers/utils/Resolver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/utils/Resolver.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/utils/Resolver.java index 94c413b31..84f0a748d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/utils/Resolver.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/utils/Resolver.java @@ -126,7 +126,7 @@ public class Resolver { if (containerElement != null) { for (org.hl7.fhir.r5.elementmodel.Element p : containerElement.getChildren("parameter")) { org.hl7.fhir.r5.elementmodel.Element res = p.getNamedChild("resource"); - if (value.equals(res.fhirType()+"/"+res.getChildValue("id"))) + if (res != null && value.equals(res.fhirType()+"/"+res.getChildValue("id"))) return p; } }