[Bug 53817] java.lang.NullPointerException

2012-09-03 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=53817

Pascal Sancho  changed:

   What|Removed |Added

  Attachment #29317|0   |1
is obsolete||

--- Comment #3 from Pascal Sancho  ---
Created attachment 29318
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29318&action=edit
Minimal test case

The NPE is thrown when foot-note is declared within the static-before region.
If I move the foot-note to the body, the NPE disappears.

Note that FOP behaves in the same way whatever the version is (tried against
v0.95, v1.0, latest trunk).

That said, IMHO I don't think that a static region is the right place for a
footnote declaration, so author should avoid to use that at this place, as a
good practice/workaround.

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 53817] java.lang.NullPointerException

2012-09-02 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=53817

Glenn Adams  changed:

   What|Removed |Added

 CC||adelme...@apache.org

--- Comment #2 from Glenn Adams  ---
looks like this code was last modified by Andreas in

http://svn.apache.org/viewvc?view=revision&revision=1067762

Andreas would you have time to take a look at this?

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 53817] java.lang.NullPointerException

2012-09-02 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=53817

--- Comment #1 from Glenn Adams  ---
just verified this on dev trunk, the full backtrace is


java.lang.NullPointerException
at
org.apache.fop.layoutmgr.PageBreakingAlgorithm.handleFootnotes(PageBreakingAlgorithm.java:370)
at
org.apache.fop.layoutmgr.PageBreakingAlgorithm.handleBox(PageBreakingAlgorithm.java:319)
at
org.apache.fop.layoutmgr.BreakingAlgorithm.handleElementAt(BreakingAlgorithm.java:751)
at
org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(BreakingAlgorithm.java:554)
at
org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(BreakingAlgorithm.java:503)
at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:421)
at
org.apache.fop.layoutmgr.StaticContentLayoutManager.doLayout(StaticContentLayoutManager.java:144)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.layoutSideRegion(PageSequenceLayoutManager.java:180)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:186)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:115)
at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:128)
at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:347)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181)
at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:285)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:177)
at org.apache.fop.cli.Main.main(Main.java:208)

-- 
You are receiving this mail because:
You are the assignee for the bug.