bckfnn 2004/09/14 02:52:58 Modified: src/java/org/apache/fop/area BodyRegion.java Log: Fix a NPE in the interaction between PageLM.needNewPage() and PageLM.needEmptyPage(). Testcase in examples/fo/basic/extensive.fo. Revision Changes Path 1.7 +1 -1 xml-fop/src/java/org/apache/fop/area/BodyRegion.java Index: BodyRegion.java =================================================================== RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/area/BodyRegion.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- BodyRegion.java 29 Aug 2004 20:58:19 -0000 1.6 +++ BodyRegion.java 14 Sep 2004 09:52:58 -0000 1.7 @@ -122,7 +122,7 @@ * @return whether the main reference area has any child areas added to it */ public boolean isEmpty() { - return mainReference.isEmpty(); + return mainReference == null || mainReference.isEmpty(); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]