From 211ac8fc12c113b3d9d3a855d2df474d5845b804 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Tue, 2 Jun 2020 18:21:09 +1000 Subject: [PATCH] fix bug processing profiles for v1.4.0 --- .../main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);