diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/org/apache/fop/fo/flow/TableBody.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/apache/fop/fo/flow/TableBody.java b/src/org/apache/fop/fo/flow/TableBody.java index fdd3afe89..67d1931be 100644 --- a/src/org/apache/fop/fo/flow/TableBody.java +++ b/src/org/apache/fop/fo/flow/TableBody.java @@ -190,7 +190,11 @@ public class TableBody extends FObj { TableRow lastRow = null; boolean endKeepGroup = true; for (int i = this.marker; i < numChildren; i++) { - TableRow row = (TableRow) children.elementAt(i); + Object child = children.elementAt(i); + if(!(child instanceof TableRow)) { + throw new FOPException("Currently only Table Rows are supported in table body, header and footer"); + } + TableRow row = (TableRow) child; row.setColumns(columns); row.doSetup(areaContainer); |