Fix NPE issue rendering resources without ids

This commit is contained in:
Grahame Grieve 2022-08-18 09:38:44 +10:00
parent 6fb61b75f0
commit 7c5782689a
1 changed files with 3 additions and 1 deletions

View File

@ -108,7 +108,9 @@ public class ProfileDrivenRenderer extends ResourceRenderer {
XhtmlNode p = x.para();
if (context.isAddGeneratedNarrativeHeader()) {
p.b().tx("Generated Narrative: "+r.fhirType());
p.an(r.getId());
if (!Utilities.noString(r.getId())) {
p.an(r.getId());
}
idDone = true;
}
if (context.isTechnicalMode() && !context.isContained()) {