You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/11/08 21:46:54 UTC
svn commit: r331880 -
/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java
Author: jeremias
Date: Tue Nov 8 12:46:51 2005
New Revision: 331880
URL: http://svn.apache.org/viewcvs?rev=331880&view=rev
Log:
Fix for bug #37412:
Space resolution creates elements with no Positions. These must be ignored. This fixes the NPE.
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java?rev=331880&r1=331879&r2=331880&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java Tue Nov 8 12:46:51 2005
@@ -128,6 +128,9 @@
Position pos;
while (parentIter.hasNext()) {
pos = (Position)parentIter.next();
+ if (pos == null) {
+ continue;
+ }
if (pos.getIndex() >= 0) {
if (firstPos == null) {
firstPos = pos;
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org