You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2009/08/19 20:31:53 UTC
DO NOT REPLY [Bug 47710] New: NullPointerException related to
white-space handling in retrieved markers
https://issues.apache.org/bugzilla/show_bug.cgi?id=47710
Summary: NullPointerException related to white-space handling
in retrieved markers
Product: Fop
Version: 1.0dev
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: fo tree
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: adelmelle@apache.org
--- Comment #0 from Andreas L. Delmelle <ad...@apache.org> 2009-08-19 11:31:53 PDT ---
Created an attachment (id=24149)
FO file reproducing the issue
If a fo:marker only contains inline-content, this may produce 'dangling'
references to the inlines that are never released, and can lead to a
NullPointerException in some cases.
See attached, minimized FO, for an example.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 47710] NullPointerException related to white-space
handling in retrieved markers
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47710
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P3
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 47710] NullPointerException related to white-space
handling in retrieved markers
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47710
--- Comment #4 from Glenn Adams <gl...@skynav.com> 2012-04-07 01:43:53 UTC ---
resetting P2 open bugs to P3 pending further review
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 47710] NullPointerException related to white-space
handling in retrieved markers
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47710
--- Comment #1 from Andreas L. Delmelle <ad...@apache.org> 2009-08-19 11:42:50 PDT ---
Created an attachment (id=24150)
Proposed quick-fix
The patch in attach fixes the problem by resetting the XMLWhiteSpaceHandler
every time a new page-sequence starts. (Note: doing this at the end of the
page-sequence does not help, because marker white-space handling is performed
in between the start- and endPageSequence events)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 47710] NullPointerException related to white-space
handling in retrieved markers
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47710
--- Comment #3 from Andreas L. Delmelle <ad...@apache.org> 2009-08-20 14:19:21 PDT ---
Quick fix committed in r806361.
I'm inclined to leave this bug open for the moment, as this is not really the
cleanest way to solve it. The real issue may ultimately still cause incorrect
preservation of trailing white-space in such markers. Likely to be hardly
noticeable, but still...
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 47710] NullPointerException related to white-space
handling in retrieved markers
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47710
--- Comment #2 from Andreas L. Delmelle <ad...@apache.org> 2009-08-19 11:46:58 PDT ---
(In reply to comment #1)
> (Note: doing this at the end of the
> page-sequence does not help, because marker white-space handling is performed
> in between the start- and endPageSequence events)
Correction: of course, I actually mean 'between end- and startPageSequence' of
two consecutive page-sequences. The endPageSequence event is triggered before
the marker's white-space is handled, and currently, that leads to references
being carried over.
Technically, the cause is that white-space handling does not really 'continue'
from the surrounding block, so the normal cleanup of the 'pending' inline is
never triggered.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.