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

[Patch] White-space fo character element throws NullPointerException

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: None
    • Component/s: fo/unqualified
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • External issue ID:
      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. patch.diff
          0.7 kB
          Matthias Reischenbacher
        2. testcase.xml
          0.6 kB
          Matthias Reischenbacher

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: