Fix NPE in code generator

This commit is contained in:
Grahame Grieve 2023-04-02 23:07:40 +10:00
parent 42a9e47379
commit 138a8cdb2d
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ public class Analyser {
if (ok) {
if (cd.getValueSet() != null) {
ValueSet vs = definitions.getValuesets().get(cd.getValueSet());
if (vs.hasName() && vs.getName().contains("ColorCodesOrRGB")) {
if (vs != null && vs.hasName() && vs.getName().contains("ColorCodesOrRGB")) {
return false;
}
if (vs != null && vs.hasCompose() && vs.getCompose().getInclude().size() == 1) {