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

[PATCH] writing-mode="rl" causing null-pointer-exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.1
    • 2.2
    • layout/unqualified
    • None
    • Operating System: All
      Platform: All
    • 54138

    Description

      i have seen that this fo causes a null-pointer-exception at fop1.1rc1.
      the same fo is perfectly fine if writing-mode="lr" or not specified

      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Arial" writing-mode="rl">
      <fo:layout-master-set>
      <fo:simple-page-master page-height="297mm" page-width="210mm" master-name="a4">
      <fo:region-body margin-top="11mm" margin-bottom="12mm" margin-right="10mm" margin-left="10mm"/>
      </fo:simple-page-master>
      </fo:layout-master-set>

      <fo:page-sequence master-reference="a4">
      <fo:flow flow-name="xsl-region-body">
      <fo:block id="1">وكلما</fo:block>
      <fo:block text-align-last="justify">More text <fo:leader leader-pattern="dots"/> <fo:page-number-citation ref-id="1"/>
      </fo:block>
      </fo:flow>
      </fo:page-sequence>

      </fo:root>

      attached is the stack trace.

      if you remove any of these 3 things, then there is no issue either
      1. <fo:leader>
      2. <fo:page-number-citation>
      3. text-align-last="justify"

      Attachments

        1. stack
          3 kB
          james quest
        2. patch.diff
          1 kB
          Robert Meyer

        Activity

          People

            gadams Glenn Adams
            quest.james@gmail.com james quest
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: