diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java index b1699a90e..b7d119827 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java @@ -758,7 +758,11 @@ public abstract class BaseWorkerContext implements IWorkerContext { @SuppressWarnings("unchecked") @Override public T fetchResourceWithException(Class class_, String uri) throws FHIRException { - if (class_ == StructureDefinition.class) + if (uri == null) { + return null; + } + + if (class_ == StructureDefinition.class) uri = ProfileUtilities.sdNs(uri, getOverrideVersionNs()); synchronized (lock) {