From: Keiron Liddle Date: Wed, 18 Sep 2002 19:27:38 +0000 (+0000) Subject: prevent npe with empty flow X-Git-Tag: Alt-Design-integration-base~384 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=abaf5c8f93c855acd3636d12239031061dd79098;p=xmlgraphics-fop.git prevent npe with empty flow git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195232 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/render/AbstractRenderer.java b/src/org/apache/fop/render/AbstractRenderer.java index c23148c33..446e9248c 100644 --- a/src/org/apache/fop/render/AbstractRenderer.java +++ b/src/org/apache/fop/render/AbstractRenderer.java @@ -344,8 +344,9 @@ public abstract class AbstractRenderer extends AbstractLogEnabled protected void renderFlow(Flow flow) { // the normal flow reference area contains stacked blocks List blocks = flow.getChildAreas(); - renderBlocks(blocks); - + if(blocks != null) { + renderBlocks(blocks); + } } /**