From ab152ef30035d26aac818e78af744dc9b8cf0943 Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Thu, 3 Aug 2000 06:36:52 +0000 Subject: [PATCH] fixes npe git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193601 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/layout/ForeignObjectArea.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.39.5