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)
Created attachment 17742 [details] the offending fo
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.
Fixed in FOP Trunk (for quite some time already, I believe...)
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed