Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2139

NullPointerException if a docbook anchor element is inside an emphasis element

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • 1.0
    • None
    • renderer/pdf
    • None
    • Operating System: Linux
      Platform: PC
    • 53955

    Description

      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

      Attachments

        1. test.xml
          0.3 kB
          Mathieu Malaterre
        2. test.fo
          38 kB
          Mathieu Malaterre

        Issue Links

          Activity

            People

              fop-dev@xmlgraphics.apache.org fop-dev
              mathieu.malaterre@gmail.com Mathieu Malaterre
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: