]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fix for bug #37412:
authorJeremias Maerki <jeremias@apache.org>
Tue, 8 Nov 2005 20:46:51 +0000 (20:46 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 8 Nov 2005 20:46:51 +0000 (20:46 +0000)
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

src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java

index a9bf81bbea41e6b29fc5ad9dfcb3e4fd3f9b24bb..23ba4dd52df836f6bb8fc1a6e43139a80ff41bec 100644 (file)
@@ -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;