diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-11-08 20:46:51 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-11-08 20:46:51 +0000 |
commit | 232fcd48e048d39b77a11d17647057baf303c19e (patch) | |
tree | d14d03a9957d2acdba1f8d21efefc4a86ef29aa6 /src/java/org/apache/fop | |
parent | 1afc34ae813dcce5e483f6962b90790b49ac381c (diff) | |
download | xmlgraphics-fop-232fcd48e048d39b77a11d17647057baf303c19e.tar.gz xmlgraphics-fop-232fcd48e048d39b77a11d17647057baf303c19e.zip |
Fix for bug #37412:
Space resolution creates elements with no Positions. These must be ignored. This fixes the NPE.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@331880 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java b/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java index a9bf81bbe..23ba4dd52 100644 --- a/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java @@ -128,6 +128,9 @@ public class ListItemContentLayoutManager extends BlockStackingLayoutManager { Position pos; while (parentIter.hasNext()) { pos = (Position)parentIter.next(); + if (pos == null) { + continue; + } if (pos.getIndex() >= 0) { if (firstPos == null) { firstPos = pos; |