Fix NPE issue rendering resources without ids
This commit is contained in:
parent
6fb61b75f0
commit
7c5782689a
|
@ -108,7 +108,9 @@ public class ProfileDrivenRenderer extends ResourceRenderer {
|
||||||
XhtmlNode p = x.para();
|
XhtmlNode p = x.para();
|
||||||
if (context.isAddGeneratedNarrativeHeader()) {
|
if (context.isAddGeneratedNarrativeHeader()) {
|
||||||
p.b().tx("Generated Narrative: "+r.fhirType());
|
p.b().tx("Generated Narrative: "+r.fhirType());
|
||||||
p.an(r.getId());
|
if (!Utilities.noString(r.getId())) {
|
||||||
|
p.an(r.getId());
|
||||||
|
}
|
||||||
idDone = true;
|
idDone = true;
|
||||||
}
|
}
|
||||||
if (context.isTechnicalMode() && !context.isContained()) {
|
if (context.isTechnicalMode() && !context.isContained()) {
|
||||||
|
|
Loading…
Reference in New Issue