fix for NPE rendering parameters with no names

This commit is contained in:
Grahame Grieve 2020-12-09 10:10:11 +11:00
parent 655c072d64
commit 8a6b797c92
1 changed files with 5 additions and 1 deletions

View File

@ -75,7 +75,11 @@ public class ParametersRenderer extends ResourceRenderer {
for (int i = 0; i < indent; i++) {
td.tx(XhtmlNode.NBSP);
}
td.tx(p.get("name").primitiveValue());
if (p.has("name")) {
td.tx(p.get("name").primitiveValue());
} else {
td.tx("???");
}
if (p.has("value")) {
renderBase(tr.td(), p.get("value"));
} else if (p.has("resource")) {