Bug 53955 - NullPointerException if a docbook anchor element is inside an emphasis element
Summary: NullPointerException if a docbook anchor element is inside an emphasis element
Status: RESOLVED DUPLICATE of bug 48765
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 1.0
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-02 15:33 UTC by Mathieu Malaterre
Modified: 2012-10-03 07:02 UTC (History)
0 users



Attachments
input docbook (356 bytes, text/xml)
2012-10-02 15:33 UTC, Mathieu Malaterre
Details
generated fo file (37.83 KB, text/x-xslfo)
2012-10-02 15:33 UTC, Mathieu Malaterre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Malaterre 2012-10-02 15:33:15 UTC
Created attachment 29436 [details]
input docbook

I encounter a java.lang.NullPointerException with fop 1:1.0.dfsg2-6
when processing a valid docbook 4.5 file. If an anchor is placed inside an
emphasis element, the produced .fo file will make fop crash.

I attach some sample files showing the problem.

The steps to reproduce the bug are the following:

vincent@hal:~$ /usr/bin/xmllint --postvalid --noout --nonet fop.segv.xml
vincent@hal:~$ echo $?
0
vincent@hal:~$ /usr/bin/xsltproc --stringparam use.extensions 1 --stringparam fop1.extensions 1 --stringparam tablecolumns.extension 0 --stringparam callouts.extension 0 -o /home/vincent/fop.segv.fo /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl /home/vincent/fop.segv.xml
Making portrait pages on USletter paper (8.5inx11in)
vincent@hal:~$ /usr/bin/fop -c /home/vincent/fop.xconf -fo /home/vincent/fop.segv.fo -pdf /home/vincent/fop.segv.pdf
[warning] /usr/bin/fop: Unable to locate servlet-api in /usr/share/java
Image not found. URI: images/draft.png. (See position 2:9549)
Image not found. URI: images/draft.png. (See position 2:10207)
Image not found. URI: images/draft.png. (See position 2:10863)
Image not found. URI: images/draft.png. (See position 2:11516)
Image not found. URI: images/draft.png. (See position 2:12166)
Image not found. URI: images/draft.png. (See position 2:12816)
Image not found. URI: images/draft.png. (See position 2:13463)
Image not found. URI: images/draft.png. (See position 2:14115)
Image not found. URI: images/draft.png. (See position 2:14767)
Image not found. URI: images/draft.png. (See position 2:15416)
Image not found. URI: images/draft.png. (See position 2:16067)
Image not found. URI: images/draft.png. (See position 2:16718)
Image not found. URI: images/draft.png. (See position 2:17366)
Image not found. URI: images/draft.png. (See position 2:18017)
Image not found. URI: images/draft.png. (See position 2:18668)
Image not found. URI: images/draft.png. (See position 2:19316)
Image not found. URI: images/draft.png. (See position 2:19968)
Image not found. URI: images/draft.png. (See position 2:20620)
Image not found. URI: images/draft.png. (See position 2:21269)
Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
Font "ZapfDingbats,normal,700" not found. Substituting with "ZapfDingbats,normal,400".
Exception
java.lang.NullPointerException
Comment 1 Mathieu Malaterre 2012-10-02 15:33:29 UTC
Created attachment 29437 [details]
generated fo file
Comment 2 Mathieu Malaterre 2012-10-02 15:34:04 UTC
Simplified steps:

$ xsltproc  -o test.fo /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl test.xml
$ fop fop.segv.fo bla.pdf
[...]
Exception
java.lang.NullPointerException
Comment 3 Pascal Sancho 2012-10-03 07:02:09 UTC
Mathieu, you have reported similar issue...

*** This bug has been marked as a duplicate of bug 48765 ***