[ 
https://issues.apache.org/jira/browse/FOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17693960#comment-17693960
 ] 

Dave Roxburgh commented on FOP-3098:
------------------------------------

The attached patches resolve this issue (patch.txt) and add an appropriate 
layout unit test (patch_cached.txt).
The bug was caused by the first fo:block inside the fo:list-item-body ending at 
the same page-height as the float. ListItemLayoutManager then set the page 
reset position (originalBodyPosition) to a ListItemContentLayoutManager instead 
of a BlockLayoutManager (the second block in the list-item-body) which caused 
the BlockStackingLayoutManager to fall over when assembling the blocks required 
to render the page. The fix looks ahead in the Knuth elements to find the 
second block and sets that as reset position.

> Nullpointer Exception in LMiter.next depending on text
> ------------------------------------------------------
>
>                 Key: FOP-3098
>                 URL: https://issues.apache.org/jira/browse/FOP-3098
>             Project: FOP
>          Issue Type: Bug
>          Components: fo/unqualified
>    Affects Versions: 2.7
>         Environment: Windows 10
>            Reporter: Michael Heitkamp
>            Priority: Major
>         Attachments: patch.txt, patch_cached.txt, stacktrace.txt, 
> x-fop-error.xml, x-fop-error.xsl
>
>
> Doing a FOP translation with the given XSL and XML input files lead to a 
> Nullpointer Exception.
> If the text block is shortened by one character ("dataX" -> "data") then the 
> translation succeeds.
> If the text block is replaced by "lore ipsum" of the same length then the 
> translation succeeds also.



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

Reply via email to