]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fix a NPE in the interaction between PageLM.needNewPage() and
authorFinn Bock <bckfnn@apache.org>
Tue, 14 Sep 2004 09:52:58 +0000 (09:52 +0000)
committerFinn Bock <bckfnn@apache.org>
Tue, 14 Sep 2004 09:52:58 +0000 (09:52 +0000)
PageLM.needEmptyPage(). Testcase in examples/fo/basic/extensive.fo.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197950 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/area/BodyRegion.java

index c1c812aa5d4fa14d2099034637f03be8e2690c93..61484e2cebb95a47ee9bc29b23a642479b4d2ee0 100644 (file)
@@ -122,7 +122,7 @@ public class BodyRegion extends RegionReference {
      * @return whether the main reference area has any child areas added to it
      */
     public boolean isEmpty() {
-        return mainReference.isEmpty();
+        return mainReference == null || mainReference.isEmpty();
     }