[jira] [Comment Edited] (FOP-1717) Footnotes in absolute block containers cause NPE

"Julien Lacour (Jira)" <[email protected]> Tue, 16 Dec 2025 08:13:01 +0000 (UTC)
Newsgroups gmane.text.xml.fop.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/FOP-1717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18043770#comment-18043770 ] 

Julien Lacour edited comment on FOP-1717 at 12/16/25 8:12 AM:
--------------------------------------------------------------

The same exception is thrown when rotating a block container (could happen in table cells for example):
{code:xml}
<fo:block-container reference-orientation="90">
    <fo:block>Lorem ipsum<fo:footnote>
            <fo:inline>1</fo:inline>
            <fo:footnote-body>
                <fo:block>Footnote body</fo:block>
            </fo:footnote-body>
    </fo:footnote>.</fo:block>
</fo:block-container>
{code}
Modifying {{BlockContainerLayoutManager.generateNonInlinedBox}} KnuthBox by a KnuthBlockBox with the list of footnotes resolves the issue.


was (Author: JIRAUSER300900):
The same exception is thrown when rotating a block container:
{code:xml}
<fo:block-container reference-orientation="90">
    <fo:block>Lorem ipsum<fo:footnote>
            <fo:inline>1</fo:inline>
            <fo:footnote-body>
                <fo:block>Footnote body</fo:block>
            </fo:footnote-body>
    </fo:footnote>.</fo:block>
</fo:block-container>
{code}
Modifying {{BlockContainerLayoutManager.generateNonInlinedBox}} KnuthBox by a KnuthBlockBox with the list of footnotes resolves the issue.

> Footnotes in absolute block containers cause NPE
> ------------------------------------------------
>
>                 Key: FOP-1717
>                 URL: https://issues.apache.org/jira/browse/FOP-1717
>             Project: FOP
>          Issue Type: Bug
>          Components: layout/unqualified
>    Affects Versions: 2.5
>         Environment: Operating System: All
> Platform: All
>            Reporter: Matthias Reischenbacher
>         Attachments: footnote_in_absolute_block-container.fo, footnote_in_absolute_block-container.patch, footnote_in_absolute_block-container.patch
>
>
> Using footnotes inside block containers, which have an absolute position,
> causes a NullPointerException.
> Attaching fo file for reproducing the error and a patch.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)