From abaf5c8f93c855acd3636d12239031061dd79098 Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Wed, 18 Sep 2002 19:27:38 +0000 Subject: [PATCH] prevent npe with empty flow git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195232 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/render/AbstractRenderer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); + } } /** -- 2.39.5