]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
fix for unknown child that returns null size
authorKeiron Liddle <keiron@apache.org>
Tue, 23 Jul 2002 11:01:59 +0000 (11:01 +0000)
committerKeiron Liddle <keiron@apache.org>
Tue, 23 Jul 2002 11:01:59 +0000 (11:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195023 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/flow/InstreamForeignObject.java

index ec0e914a30333197137db21f89b7a1eac5bebefd..6657524ec63dc6d4f22e27e9dd25841e09d8666b 100644 (file)
@@ -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;
         }