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 2011/09/16 16:05:10 UTC
DO NOT REPLY [Bug 51836] New: NullPointerException when navigation
target doesn't exist
https://issues.apache.org/bugzilla/show_bug.cgi?id=51836
Bug #: 51836
Summary: NullPointerException when navigation target doesn't
exist
Product: Fop
Version: 1.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: trivial
Priority: P2
Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: melanie.drake@gmail.com
Classification: Unclassified
Created attachment 27512
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27512
IF file after modification
A NullPointerException was encountered when trying to generate a PDF from a
modified FOP IF file. The IF file was systematically manipulated to delete
some of the <page-sequence> and <page> elements. The exception was the result
of <nav:*> elements that reference content that no longer exists in the IF
file. Stripping all <nav:*> elements from the IF file avoids the exception.
There may be a more graceful way of handling this than a NullPointerException.
The specific error I get when trying to generate the PDF is:
Caused by: java.lang.NullPointerException
at
org.apache.fop.render.pdf.PDFDocumentNavigationHandler.updateTargetLocation(PDFDocumentNavigationHandler.java:188)
at
org.apache.fop.render.pdf.PDFDocumentNavigationHandler.getAction(PDFDocumentNavigationHandler.java:160)
at
org.apache.fop.render.pdf.PDFDocumentNavigationHandler.renderLink(PDFDocumentNavigationHandler.java:108)
at
org.apache.fop.render.intermediate.extensions.DocumentNavigationHandler.endElement(DocumentNavigationHandler.java:186)
[rest of stack omitted]
I believe the NullPointerException occurs on this line in
PDFDocumentNavigationHandler.java:
action.getTargetLocation().x / 1000.0
--
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 51836] NullPointerException when navigation target
doesn't exist
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51836
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Glenn Adams <gl...@skynav.com> 2012-04-07 04:08:25 UTC ---
http://svn.apache.org/viewvc?view=revision&revision=1310666
--
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 51836] NullPointerException when navigation target
doesn't exist
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51836
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 51836] NullPointerException when navigation target
doesn't exist
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51836
--- Comment #1 from melanie.drake@gmail.com 2011-09-16 14:05:53 UTC ---
Created attachment 27513
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27513
IF file before modification
--
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 51836] NullPointerException when navigation target
doesn't exist
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51836
--- Comment #2 from Glenn Adams <gl...@skynav.com> 2012-04-07 01:42:22 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.