aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core/src
diff options
context:
space:
mode:
authorChris Bowditch <cbowditch@apache.org>2023-03-13 10:56:44 +0000
committerChris Bowditch <cbowditch@apache.org>2023-03-13 10:56:44 +0000
commit2a73338d3424e9907b46a19f2288d61c9f885006 (patch)
tree464f918b7752b46a1916ba194fe49cb78e85b577 /fop-core/src
parent96a114cb7b8c23835b3aa4205b56c88ba5e7c6c3 (diff)
downloadxmlgraphics-fop-2a73338d3424e9907b46a19f2288d61c9f885006.tar.gz
xmlgraphics-fop-2a73338d3424e9907b46a19f2288d61c9f885006.zip
Add fix for NPE related to FOP-3098 by Jeremias Maerki
Diffstat (limited to 'fop-core/src')
-rw-r--r--fop-core/src/main/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java b/fop-core/src/main/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java
index a15e58ad4..9473db66c 100644
--- a/fop-core/src/main/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java
+++ b/fop-core/src/main/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java
@@ -498,6 +498,7 @@ public class ListItemLayoutManager extends SpacedBorderedPaddedBlockLayoutManage
&& position.getLM() instanceof ListItemContentLayoutManager) {
position = position.getPosition();
if (position != null
+ && position.getPosition() != null
&& position.getLM() instanceof BlockLayoutManager) {
retval = new LeafPosition(position.getPosition().getLM(), 0);
}