fix rendering issue when reference.reference missing

This commit is contained in:
Grahame Grieve 2022-11-22 05:58:17 -03:00
parent 24331956f1
commit 74b1b7f201
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ public abstract class ResourceRenderer extends DataRenderer {
if (display != null) { if (display != null) {
c.addText(": "+display); c.addText(": "+display);
} }
if ((tr == null || !tr.getReference().startsWith("#")) && name != null) { if ((tr == null || (tr.getReference() != null && !tr.getReference().startsWith("#"))) && name != null) {
x.addText(" \""+name+"\""); x.addText(" \""+name+"\"");
} }
if (r.hasExtension(ToolingExtensions.EXT_TARGET_ID)) { if (r.hasExtension(ToolingExtensions.EXT_TARGET_ID)) {