Fix access violation rendering questionnaire

This commit is contained in:
Grahame Grieve 2023-04-01 07:32:45 +11:00
parent c66da517bb
commit 9e98128eee
1 changed files with 5 additions and 1 deletions

View File

@ -1025,7 +1025,11 @@ public class QuestionnaireRenderer extends TerminologyRenderer {
if (qi.getEnableWhen().size() == 1) {
renderEnableWhen(td, qi.getEnableWhen().get(0));
} else {
td.tx(qi.getEnableBehavior().getDisplay()+" are true:");
if (qi.hasEnableBehavior()) {
td.tx(qi.getEnableBehavior().getDisplay()+" are true:");
} else {
td.tx("?? are true:");
}
XhtmlNode ul = td.ul();
for (QuestionnaireItemEnableWhenComponent ew : qi.getEnableWhen()) {
renderEnableWhen(ul.li(), ew);