]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed (another) NPE in AFP Renderer
authorManuel Mall <manuel@apache.org>
Wed, 28 Jun 2006 15:37:51 +0000 (15:37 +0000)
committerManuel Mall <manuel@apache.org>
Wed, 28 Jun 2006 15:37:51 +0000 (15:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@417794 13f79535-47bb-0310-9956-ffa450edef68

src/sandbox/org/apache/fop/render/afp/modca/AbstractPageObject.java

index 876537d7fadad6611eb0be6793786754b912ff53..cc880c09f41b0d08c07c2f3c1368d07ccb7e27b6 100644 (file)
@@ -227,7 +227,9 @@ public abstract class AbstractPageObject extends AbstractNamedAFPObject {
      */
     public void endPage() {
 
-        _presentationTextObject.endControlSequence();
+        if (_presentationTextObject != null) {
+            _presentationTextObject.endControlSequence();
+        }
 
         _complete = true;