FOP
  1. FOP
  2. FOP-1915

[Patch] White-space fo character element throws NullPointerException

    Details

    • Type: Bug 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).

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

        Activity

        Matthias Reischenbacher created issue -

          People

          • Assignee:
            fop-dev
            Reporter:
            Matthias Reischenbacher
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development