Fix NPE in questionnaire renderer
This commit is contained in:
parent
5bbb21aad5
commit
c9bb2b4e55
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue