xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50574] content overflow onto second ODD page causes NullPointerException
Date Fri, 11 Feb 2011 16:37:27 GMT

--- Comment #1 from Andreas L. Delmelle <adelmelle@apache.org> 2011-02-11 11:37:24 EST

The difference is that 0.95 did not yet support alternating page-ipd. In this
scenario it did not show, since the narrower pages were empty.

For future reference, from a technical perspective the issue is the double
restart that is triggered without content in between (actually: restart -
overflow - restart). The first restart works like a charm, and kicks off from a
SpaceHandlingBreakPosition as expected, but the overflow triggered by the
second (empty) page, leaves us with no active node. Hence, NPE in

Adding the proposed fix for bug 49835, the NPE is avoided, but in that case, it
becomes apparent that the SpaceHandlingBreakPosition is consumed, and the new
blockList after the second restart, starts with a TableContentPosition, from
which no restart is possible...

In addition to the fix for bug 49835, my first idea would be to:
- store the last restart point in AbstractBreaker as a member
- in case a restart is not triggered from a SpaceHandlingBreakPosition, and
that position immediately follows the previous restart point, restart from the
stored one, as that is an indication there was not enough room to fit any
content on the next page(s).

Still left to verify whether this approach could resolve the issue. Stay

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message