diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/comparison/ValueSetComparer.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/comparison/ValueSetComparer.java index 674db72ab..7ce597134 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/comparison/ValueSetComparer.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/comparison/ValueSetComparer.java @@ -545,8 +545,7 @@ public class ValueSetComparer extends CanonicalResourceComparer { if (t.hasLeft() && t.hasRight()) { ConceptSetComponent csL = (ConceptSetComponent) t.getLeft(); ConceptSetComponent csR = (ConceptSetComponent) t.getRight(); - // we assume both have systems - if (csL.getSystem().equals(csR.getSystem())) { + if (csL.hasSystem() && csL.getSystem().equals(csR.getSystem())) { r.getCells().add(gen.new Cell(null, null, csL.getSystem(), null, null).span(2).center()); } else { r.getCells().add(gen.new Cell(null, null, csL.getSystem(), null, null).setStyle("background-color: "+COLOR_DIFFERENT));