From a620e2aa30c6e2121be9ba066766745fb96c3b1f Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 15 Sep 2023 10:14:06 -0700 Subject: [PATCH] fix NPE validating concept maps --- .../hl7/fhir/validation/instance/type/ConceptMapValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/ConceptMapValidator.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/ConceptMapValidator.java index f25047ef2..05585ed06 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/ConceptMapValidator.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/ConceptMapValidator.java @@ -425,7 +425,7 @@ public class ConceptMapValidator extends BaseValidator { private void addToBatch(Element code, NodeStack stack, CSReference system, VSReference scope) { - if (scope != null && scope.vs != null) { + if (scope != null && scope.vs != null && system != null) { Coding c = new Coding(system.url, code.primitiveValue(), null).setVersion(system.version); batch.add(new CMCodingValidationRequest(stack, c, scope.vs)); }