Prevent NPE resolving resource in batch

This commit is contained in:
Grahame Grieve 2020-09-17 15:42:03 +10:00
parent 3464643921
commit 2e7e277c97
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}