diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/terminologies/ConceptMapEngine.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/terminologies/ConceptMapEngine.java index d5e033d34..c329533c3 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/terminologies/ConceptMapEngine.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/terminologies/ConceptMapEngine.java @@ -64,7 +64,7 @@ public class ConceptMapEngine { for (ConceptMapGroupComponent g : cm.getGroup()) { for (SourceElementComponent e : g.getElement()) { if (code.equals(e.getCode())) { - if (e != null) + if (ct != null) throw new FHIRException("Unable to process translate "+code+" because multiple candidate matches were found in concept map "+cm.getUrl()); ct = e; cg = g;