https://issues.apache.org/bugzilla/show_bug.cgi?id=53955
Priority: P2
Bug ID: 53955
Assignee: [email protected]
Summary: NullPointerException if a docbook anchor element is
inside an emphasis element
Severity: normal
Classification: Unclassified
OS: Linux
Reporter: [email protected]
Hardware: PC
Status: NEW
Version: 1.0
Component: pdf
Product: Fop
Created attachment 29436
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29436&action=edit
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
--
You are receiving this mail because:
You are the assignee for the bug.