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

[Patch] White-space fo character element throws NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.5
    • None
    • fo/unqualified
    • None
    • Operating System: All
      Platform: All
    • 50988

    Description

      If the first child element of a fo:block is a white-space fo character a NullPointerException is thrown. I analyzed the code and the problem seems to be that the currentTextNode instance variable of FObjMixed is not reset (to null or the following sibling) after the Character object has been removed (due to white space handling).

      Attachments

        1. testcase.xml
          0.6 kB
          Matthias Reischenbacher
        2. patch.diff
          0.7 kB
          Matthias Reischenbacher

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            matthias8283 Matthias Reischenbacher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: