aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/org/apache/fop/fo/flow/Flow.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/apache/fop/fo/flow/Flow.java b/src/org/apache/fop/fo/flow/Flow.java
index 003d2297f..2af7500e0 100644
--- a/src/org/apache/fop/fo/flow/Flow.java
+++ b/src/org/apache/fop/fo/flow/Flow.java
@@ -159,9 +159,13 @@ public class Flow extends FObj {
Vector pageMarker = this.getMarkerSnapshot(new Vector());
int numChildren = this.children.size();
+ if (numChildren == 0)
+ {
+ throw new FOPException("fo:flow must contain block-level children");
+ }
for (int i = this.marker; i < numChildren; i++) {
FObj fo = (FObj) children.elementAt(i);
-
+
if (bac.isBalancingRequired(fo))
{
// reset the the just-done span area in preparation