fix NPE in list renderer
This commit is contained in:
parent
81569a3984
commit
c7dc4b149e
|
@ -212,7 +212,7 @@ public class ListRenderer extends ResourceRenderer {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void shortForRef(XhtmlNode x, Reference ref) throws UnsupportedEncodingException, IOException {
|
private void shortForRef(XhtmlNode x, Reference ref) throws UnsupportedEncodingException, IOException {
|
||||||
ResourceWithReference r = context.getResolver().resolve(context, ref.getReference());
|
ResourceWithReference r = context.getResolver() == null ? null : context.getResolver().resolve(context, ref.getReference());
|
||||||
if (r == null) {
|
if (r == null) {
|
||||||
x.tx(display(ref));
|
x.tx(display(ref));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue