Fix access violation rendering questionnaire
This commit is contained in:
parent
c66da517bb
commit
9e98128eee
|
@ -1025,7 +1025,11 @@ public class QuestionnaireRenderer extends TerminologyRenderer {
|
||||||
if (qi.getEnableWhen().size() == 1) {
|
if (qi.getEnableWhen().size() == 1) {
|
||||||
renderEnableWhen(td, qi.getEnableWhen().get(0));
|
renderEnableWhen(td, qi.getEnableWhen().get(0));
|
||||||
} else {
|
} 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();
|
XhtmlNode ul = td.ul();
|
||||||
for (QuestionnaireItemEnableWhenComponent ew : qi.getEnableWhen()) {
|
for (QuestionnaireItemEnableWhenComponent ew : qi.getEnableWhen()) {
|
||||||
renderEnableWhen(ul.li(), ew);
|
renderEnableWhen(ul.li(), ew);
|
||||||
|
|
Loading…
Reference in New Issue