diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2014-06-19 06:58:19 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2014-06-19 06:58:19 +0000 |
commit | 11ec778e1fe394c0092228da3cadabd156432bb5 (patch) | |
tree | 164fda110146e0fecbffca427753df794b0f7011 | |
parent | 4d524ac15230182525ce2ba8d4c8048765a87ba8 (diff) | |
download | xmlgraphics-fop-11ec778e1fe394c0092228da3cadabd156432bb5.tar.gz xmlgraphics-fop-11ec778e1fe394c0092228da3cadabd156432bb5.zip |
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
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |