From 232fcd48e048d39b77a11d17647057baf303c19e Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Tue, 8 Nov 2005 20:46:51 +0000 Subject: [PATCH] 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 --- .../fop/layoutmgr/list/ListItemContentLayoutManager.java | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5