aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2001-03-14 00:50:21 +0000
committerKeiron Liddle <keiron@apache.org>2001-03-14 00:50:21 +0000
commitc69cea11bffe37bc920bc531239b8a9be347e174 (patch)
treef0f74c2796154a7ba8b0b2b406c8cc9789291cb8
parent5262f68b60780e8f3a8000e7047933720fe96230 (diff)
downloadxmlgraphics-fop-c69cea11bffe37bc920bc531239b8a9be347e174.tar.gz
xmlgraphics-fop-c69cea11bffe37bc920bc531239b8a9be347e174.zip
checks for no more room in block area
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194157 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/org/apache/fop/fo/flow/InstreamForeignObject.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/apache/fop/fo/flow/InstreamForeignObject.java b/src/org/apache/fop/fo/flow/InstreamForeignObject.java
index c173ad7b7..3ef4cb6f3 100644
--- a/src/org/apache/fop/fo/flow/InstreamForeignObject.java
+++ b/src/org/apache/fop/fo/flow/InstreamForeignObject.java
@@ -224,6 +224,9 @@ public class InstreamForeignObject extends FObj {
if (area instanceof BlockArea) {
BlockArea ba = (BlockArea)area;
LineArea la = ba.getCurrentLineArea();
+ if(la == null) {
+ return new Status(Status.AREA_FULL_NONE);
+ }
la.addPending();
if(areaCurrent.getEffectiveWidth() > la.getRemainingWidth()) {
la = ba.createNextLineArea();