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
Created attachment 29437 [details] generated fo file
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
Mathieu, you have reported similar issue... *** This bug has been marked as a duplicate of bug 48765 ***