From 137d04f68d27875dd2d97d951cb4170740d15c00 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Mon, 3 Aug 2020 17:30:37 +1000 Subject: [PATCH] fix NPE error comparing value sets --- .../main/java/org/hl7/fhir/r5/comparison/ValueSetComparer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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));