diff options
author | Simon Steiner <ssteiner@apache.org> | 2023-02-23 13:48:17 +0000 |
---|---|---|
committer | Simon Steiner <ssteiner@apache.org> | 2023-02-23 13:48:17 +0000 |
commit | 2eb52494850ddcd44150e259829e7ed1cfaacf09 (patch) | |
tree | a4de9e5a049abf1d2d6780cbfc6d9fb1083b0fb9 /fop-core | |
parent | 024bb283860776bb92c44e7f18d08e1e21ef8a4d (diff) | |
download | xmlgraphics-fop-2eb52494850ddcd44150e259829e7ed1cfaacf09.tar.gz xmlgraphics-fop-2eb52494850ddcd44150e259829e7ed1cfaacf09.zip |
FOP-3120: IllegalArgumentException for list in a table
Diffstat (limited to 'fop-core')
-rw-r--r-- | fop-core/src/main/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java b/fop-core/src/main/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java index a1e888116..0060c4b11 100644 --- a/fop-core/src/main/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java +++ b/fop-core/src/main/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java @@ -315,7 +315,9 @@ public abstract class AbstractLayoutManager extends AbstractBaseLayoutManager im * @return True if it is the first Position */ public boolean isFirst(Position pos) { - //log.trace("isFirst() smallestPosNumberChecked=" + smallestPosNumberChecked + " " + pos); + if (pos == null) { + return false; + } verifyNonNullPosition(pos); if (pos.getIndex() == this.smallestPosNumberChecked) { return true; @@ -333,6 +335,9 @@ public abstract class AbstractLayoutManager extends AbstractBaseLayoutManager im * @return True if it is the last Position */ public boolean isLast(Position pos) { + if (pos == null) { + return false; + } verifyNonNullPosition(pos); return (pos.getIndex() == this.lastGeneratedPosition && isFinished()); |