Browse Source

prevent npe with empty flow


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195232 13f79535-47bb-0310-9956-ffa450edef68
tags/Alt-Design-integration-base
Keiron Liddle 22 years ago
parent
commit
abaf5c8f93
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/org/apache/fop/render/AbstractRenderer.java

+ 3
- 2
src/org/apache/fop/render/AbstractRenderer.java View 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);
}
}

/**

Loading…
Cancel
Save