aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/flow
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-07-23 11:01:59 +0000
committerKeiron Liddle <keiron@apache.org>2002-07-23 11:01:59 +0000
commit7f263c27804a4882f33f5a423150d5cc52448361 (patch)
treee1fa43aafa6618477bb284c51655e074a15a5ac8 /src/org/apache/fop/fo/flow
parent3b6ecefad276b4b487961ea4079886e2e7a96277 (diff)
downloadxmlgraphics-fop-7f263c27804a4882f33f5a423150d5cc52448361.tar.gz
xmlgraphics-fop-7f263c27804a4882f33f5a423150d5cc52448361.zip
fix for unknown child that returns null size
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195023 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo/flow')
-rw-r--r--src/org/apache/fop/fo/flow/InstreamForeignObject.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/apache/fop/fo/flow/InstreamForeignObject.java b/src/org/apache/fop/fo/flow/InstreamForeignObject.java
index ec0e914a3..6657524ec 100644
--- a/src/org/apache/fop/fo/flow/InstreamForeignObject.java
+++ b/src/org/apache/fop/fo/flow/InstreamForeignObject.java
@@ -161,6 +161,10 @@ public class InstreamForeignObject extends FObj {
Point2D csize = new Point2D.Float(cwidth == -1 ? -1 : cwidth / 1000f, cheight == -1 ? -1 : cheight / 1000f);
Point2D size = child.getDimension(csize);
+ if(size == null) {
+ // error
+ return null;
+ }
if(cwidth == -1) {
cwidth = (int)size.getX() * 1000;
}