From 11ec778e1fe394c0092228da3cadabd156432bb5 Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Thu, 19 Jun 2014 06:58:19 +0000 Subject: [PATCH] footnoteList cannot be null there; instead we want to check if it's empty git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1603726 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/layoutmgr/list/ListItemLayoutManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java b/src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java index 053452f03..4df716899 100644 --- a/src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java @@ -331,7 +331,7 @@ public class ListItemLayoutManager extends SpacedBorderedPaddedBlockLayoutManage addedBoxHeight += boxHeight; ListItemPosition stepPosition = new ListItemPosition(this, start[0], end[0], start[1], end[1]); - if (footnoteList == null) { + if (footnoteList.isEmpty()) { returnList.add(new KnuthBox(boxHeight, stepPosition, false)); } else { returnList.add(new KnuthBlockBox(boxHeight, footnoteList, stepPosition, false)); -- 2.39.5