fix npe in narrative generation (r4b)

This commit is contained in:
Grahame Grieve 2022-09-07 08:10:39 +10:00
parent bc77c2d031
commit 4dde247466
1 changed files with 1 additions and 1 deletions

View File

@ -713,7 +713,7 @@ public class QuestionnaireRenderer extends TerminologyRenderer {
XhtmlNode ans = item(ul, "Answers");
if (!Utilities.noString(i.getAnswerValueSet()) && i.getAnswerValueSet().startsWith("#")) {
ValueSet vs = (ValueSet) q.getContained(i.getAnswerValueSet().substring(1));
if (vs == null) {
if (vs == null || !vs.hasUserData("path")) {
ans.tx(i.getAnswerValueSet());
} else {
ans.ah(vs.getUserString("path")).tx(vs.present());