diff options
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() |