Fix bug where discriminating on erroneous URL

This commit is contained in:
Grahame Grieve 2020-08-26 10:35:04 +10:00
parent da91f17011
commit 1625c171ae
1 changed files with 1 additions and 1 deletions

View File

@ -4839,7 +4839,7 @@ public class FHIRPathEngine {
while (exsd!=null && !exsd.getBaseDefinition().equals("http://hl7.org/fhir/StructureDefinition/Extension")) {
exsd = worker.fetchResource(StructureDefinition.class, exsd.getBaseDefinition());
}
if (exsd.getUrl().equals(targetUrl)) {
if (exsd != null && exsd.getUrl().equals(targetUrl)) {
if (profileUtilities.getChildMap(sd, t).isEmpty()) {
sd = exsd;
}