From 2a73338d3424e9907b46a19f2288d61c9f885006 Mon Sep 17 00:00:00 2001 From: Chris Bowditch Date: Mon, 13 Mar 2023 10:56:44 +0000 Subject: Add fix for NPE related to FOP-3098 by Jeremias Maerki --- .../main/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java | 1 + 1 file changed, 1 insertion(+) (limited to 'fop-core/src') 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); } -- cgit v1.2.3