fix bug in bundle rendering

This commit is contained in:
Grahame Grieve 2020-11-30 17:58:50 +11:00
parent bdf783e9e0
commit 2d8ac6f377
1 changed files with 5 additions and 3 deletions

View File

@ -401,9 +401,11 @@ public class BundleRenderer extends ResourceRenderer {
public boolean canRender(Bundle b) {
for (BundleEntryComponent be : b.getEntry()) {
ResourceRenderer rr = RendererFactory.factory(be.getResource(), context);
if (!rr.canRender(be.getResource())) {
return false;
if (be.hasResource()) {
ResourceRenderer rr = RendererFactory.factory(be.getResource(), context);
if (!rr.canRender(be.getResource())) {
return false;
}
}
}
return true;