Fix NPE in questionnaire renderer

This commit is contained in:
Grahame Grieve 2024-08-16 06:46:52 +08:00
parent 5bbb21aad5
commit c9bb2b4e55
1 changed files with 6 additions and 0 deletions

View File

@ -152,6 +152,12 @@ public class QuestionnaireRenderer extends TerminologyRenderer {
text = v.primitiveValue("code");
}
}
if (value == null) {
value = "??";
}
if (text == null) {
text = "??";
}
boolean selected = "true".equals(opt.primitiveValue("initialSelected"));
x.option(value, text, selected);
}