diff options
-rw-r--r-- | src/org/apache/fop/fo/flow/InstreamForeignObject.java | 3 |
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(); |