Bug 38710 - NPE with fo:title
Summary: NPE with fo:title
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: page-master/layout (show other bugs)
Version: trunk
Hardware: All Windows XP
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-20 04:18 UTC by Nils Meier
Modified: 2012-04-01 07:01 UTC (History)
0 users



Attachments
the offending fo (433 bytes, text/plain)
2006-02-20 04:19 UTC, Nils Meier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nils Meier 2006-02-20 04:18:36 UTC
Hi 

I'm trying to run the attached xml through FOP - it works fine 
without a fo:title element under fo:page-sequence. With it
the NPE below shows up - I believe lineHeight is null when
this happens.

Regards
Nils


java.lang.NullPointerException
	at
org.apache.fop.layoutmgr.inline.InlineLayoutManager.getNextKnuthElements(InlineLayoutManager.java:232)
	at
org.apache.fop.layoutmgr.inline.ContentLayoutManager.getNextKnuthElements(ContentLayoutManager.java:254)
	at
org.apache.fop.layoutmgr.inline.ContentLayoutManager.fillArea(ContentLayoutManager.java:118)
	at
org.apache.fop.layoutmgr.inline.ContentLayoutManager.<init>(ContentLayoutManager.java:86)
	at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:131)
	at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:320)
	at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:155)
	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:360)
	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:196)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1050)
	at org.apache.xml.utils.TreeWalker.endNode(TreeWalker.java:480)
	at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:197)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:325)
Comment 1 Nils Meier 2006-02-20 04:19:56 UTC
Created attachment 17742 [details]
the offending fo
Comment 2 Jeremias Maerki 2006-02-20 10:00:21 UTC
I ran into this myself recently. However, I saw that there was no quick fix so I
let it rest for the moment. The problem is that with the recent (last few
months) work on inline layout some context information is not properly set up to
handle the fo:title element. Since we don't have a test case in our test suite
for checking this element we didn't notice when it broke.

So, the work-around for the moment as you already found out is to comment the
fo:title. Thanks for opening a Bugzilla entry. That'll help remind us that we
need to fix this eventually.
Comment 3 Andreas L. Delmelle 2007-02-06 12:02:09 UTC
Fixed in FOP Trunk (for quite some time already, I believe...)
Comment 4 Glenn Adams 2012-04-01 07:01:22 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed