]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
prevent npe with empty flow
authorKeiron Liddle <keiron@apache.org>
Wed, 18 Sep 2002 19:27:38 +0000 (19:27 +0000)
committerKeiron Liddle <keiron@apache.org>
Wed, 18 Sep 2002 19:27:38 +0000 (19:27 +0000)
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

index c23148c333c0d3df8cf6902a7e3a00ec8458a0c6..446e9248c1599efd055886457f46b38dda2d4fce 100644 (file)
@@ -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);
+        }
     }
 
     /**