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 29e141bd9..c30565bf9 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 @@ -309,7 +309,9 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte for (ElementDefinition ed : sd.getDifferential().getElement()) { if (ed.getPath().equals("Extension.url") || ed.getPath().endsWith(".extension.url") ) { ed.setMin(1); - ed.getBase().setMin(1); + if (ed.hasBase()) { + ed.getBase().setMin(1); + } } if ("extension".equals(ed.getSliceName())) { ed.setSliceName(null);