diff options
author | Simon Steiner <ssteiner@apache.org> | 2022-10-27 12:12:28 +0000 |
---|---|---|
committer | Simon Steiner <ssteiner@apache.org> | 2022-10-27 12:12:28 +0000 |
commit | 143ec7cbbe1c89691401de1646162234e8247333 (patch) | |
tree | bcfd8d75feb33e86ca9cfa265377b8f30cc6e0a6 /fop-core | |
parent | 07c10456a3f3d5ad386992a9b4006b0334f7a8ac (diff) | |
download | xmlgraphics-fop-143ec7cbbe1c89691401de1646162234e8247333.tar.gz xmlgraphics-fop-143ec7cbbe1c89691401de1646162234e8247333.zip |
FOP-3103: NPE when using a footnote on redo of layout
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1904884 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop-core')
-rw-r--r-- | fop-core/src/main/java/org/apache/fop/layoutmgr/PageBreaker.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/layoutmgr/PageBreaker.java b/fop-core/src/main/java/org/apache/fop/layoutmgr/PageBreaker.java index b1babb12a..cd9b7f363 100644 --- a/fop-core/src/main/java/org/apache/fop/layoutmgr/PageBreaker.java +++ b/fop-core/src/main/java/org/apache/fop/layoutmgr/PageBreaker.java @@ -451,8 +451,10 @@ public class PageBreaker extends AbstractBreaker { int optimalPageCount = algRestart.findBreakingPoints(effectiveList, newStartPos, 1, true, BreakingAlgorithm.ALL_BREAKS); - log.debug("restart: optimalPageCount= " + optimalPageCount - + " pageBreaks.size()= " + algRestart.getPageBreaks().size()); + if (algRestart.getPageBreaks() != null) { + log.debug("restart: optimalPageCount= " + optimalPageCount + + " pageBreaks.size()= " + algRestart.getPageBreaks().size()); + } boolean fitsOnePage = optimalPageCount <= pslm.getCurrentPV() |