From: Jeremias Maerki Date: Tue, 8 Nov 2005 20:46:51 +0000 (+0000) Subject: Fix for bug #37412: X-Git-Tag: fop-0_90-alpha1~79 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=232fcd48e048d39b77a11d17647057baf303c19e;p=xmlgraphics-fop.git 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 --- 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;