]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
footnoteList cannot be null there; instead we want to check if it's empty
authorVincent Hennebert <vhennebert@apache.org>
Thu, 19 Jun 2014 06:58:19 +0000 (06:58 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Thu, 19 Jun 2014 06:58:19 +0000 (06:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1603726 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java

index 053452f03f8777822f8d055da786a88b9f775fc6..4df716899c7444fa56c1156cb50a089445d69461 100644 (file)
@@ -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));