From: Keiron Liddle Date: Thu, 3 Aug 2000 06:36:52 +0000 (+0000) Subject: fixes npe X-Git-Tag: pre-columns~276 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ab152ef30035d26aac818e78af744dc9b8cf0943;p=xmlgraphics-fop.git fixes npe git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193601 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/layout/ForeignObjectArea.java b/src/org/apache/fop/layout/ForeignObjectArea.java index 2cefad041..da61c76da 100644 --- a/src/org/apache/fop/layout/ForeignObjectArea.java +++ b/src/org/apache/fop/layout/ForeignObjectArea.java @@ -71,7 +71,8 @@ public class ForeignObjectArea extends Area { } public void render(Renderer renderer) { - renderer.renderForeignObjectArea(this); + if(foreignObject != null) + renderer.renderForeignObjectArea(this); } public void setObject(Area fobject) {