fix NPE error comparing value sets

This commit is contained in:
Grahame Grieve 2020-08-03 17:30:37 +10:00
parent 477bf66108
commit 137d04f68d
1 changed files with 1 additions and 2 deletions

View File

@ -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));