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 ma...@apache.org on 2005/12/28 05:12:46 UTC
svn commit: r359383 - in /xmlgraphics/fop/trunk:
src/java/org/apache/fop/layoutmgr/inline/InlineLayoutManager.java status.xml
Author: manuel
Date: Tue Dec 27 20:12:40 2005
New Revision: 359383
URL: http://svn.apache.org/viewcvs?rev=359383&view=rev
Log:
Fix for NPE reported in bugzilla 38053. Unfortunately I have not been able to construct a small testcase for it.
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/InlineLayoutManager.java
xmlgraphics/fop/trunk/status.xml
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/InlineLayoutManager.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/InlineLayoutManager.java?rev=359383&r1=359382&r2=359383&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/InlineLayoutManager.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/InlineLayoutManager.java Tue Dec 27 20:12:40 2005
@@ -423,7 +423,9 @@
context.getTrailingSpace().addSpace(new SpaceVal(getSpaceEnd(), this));
}
- setTraits(areaCreated, !isLast(lastPos));
+ // Not sure if lastPos can legally be null or if that masks a different problem.
+ // But it seems to fix bug 38053.
+ setTraits(areaCreated, lastPos == null || !isLast(lastPos));
parentLM.addChildArea(getCurrentArea());
context.setFlags(LayoutContext.LAST_AREA, isLast);
Modified: xmlgraphics/fop/trunk/status.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/status.xml?rev=359383&r1=359382&r2=359383&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/status.xml (original)
+++ xmlgraphics/fop/trunk/status.xml Tue Dec 27 20:12:40 2005
@@ -27,6 +27,9 @@
<changes>
<release version="FOP Trunk">
+ <action context="Code" dev="MM" type="fix" fixes-bug="38053">
+ Bugfix: NullPointerException on certain fo:inline within lists.
+ </action>
<action context="Code" dev="MM" type="fix" fixes-bug="37743">
Bugfix: ClassCastException on certain fo:inline with border combinations.
</action>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org