aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2022-10-27 12:12:28 +0000
committerSimon Steiner <ssteiner@apache.org>2022-10-27 12:12:28 +0000
commit143ec7cbbe1c89691401de1646162234e8247333 (patch)
treebcfd8d75feb33e86ca9cfa265377b8f30cc6e0a6 /fop-core
parent07c10456a3f3d5ad386992a9b4006b0334f7a8ac (diff)
downloadxmlgraphics-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.java6
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()