fix for NPE rendering parameters with no names
This commit is contained in:
parent
655c072d64
commit
8a6b797c92
|
@ -75,7 +75,11 @@ public class ParametersRenderer extends ResourceRenderer {
|
||||||
for (int i = 0; i < indent; i++) {
|
for (int i = 0; i < indent; i++) {
|
||||||
td.tx(XhtmlNode.NBSP);
|
td.tx(XhtmlNode.NBSP);
|
||||||
}
|
}
|
||||||
|
if (p.has("name")) {
|
||||||
td.tx(p.get("name").primitiveValue());
|
td.tx(p.get("name").primitiveValue());
|
||||||
|
} else {
|
||||||
|
td.tx("???");
|
||||||
|
}
|
||||||
if (p.has("value")) {
|
if (p.has("value")) {
|
||||||
renderBase(tr.td(), p.get("value"));
|
renderBase(tr.td(), p.get("value"));
|
||||||
} else if (p.has("resource")) {
|
} else if (p.has("resource")) {
|
||||||
|
|
Loading…
Reference in New Issue