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 tree
    • 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. patch.diff
        0.7 kB
        Matthias Reischenbacher
      2. testcase.xml
        0.6 kB
        Matthias Reischenbacher

        Activity

        Hide
        Glenn Adams added a comment -

        batch transition to closed; if someone wishes to restore one of these to resolved in order to perform a verification step, then feel free to do so

        Show
        Glenn Adams added a comment - batch transition to closed; if someone wishes to restore one of these to resolved in order to perform a verification step, then feel free to do so
        Hide
        Andreas L. Delmelle added a comment -

        Fixed in r1088242. See: http://svn.apache.org/viewvc?rev=1088242&view=rev

        Thanks for the patch!

        Show
        Andreas L. Delmelle added a comment - Fixed in r1088242. See: http://svn.apache.org/viewvc?rev=1088242&view=rev Thanks for the patch!
        Hide
        Matthias Reischenbacher added a comment -

        Attachment patch.diff has been added with description: Patch

        Show
        Matthias Reischenbacher added a comment - Attachment patch.diff has been added with description: Patch
        Hide
        Matthias Reischenbacher added a comment -

        Attachment testcase.xml has been added with description: Testcase

        Show
        Matthias Reischenbacher added a comment - Attachment testcase.xml has been added with description: Testcase

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development