aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/flow/ExternalGraphic.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/fo/flow/ExternalGraphic.java')
-rw-r--r--src/org/apache/fop/fo/flow/ExternalGraphic.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/apache/fop/fo/flow/ExternalGraphic.java b/src/org/apache/fop/fo/flow/ExternalGraphic.java
index 386e475cd..f3b6e59b0 100644
--- a/src/org/apache/fop/fo/flow/ExternalGraphic.java
+++ b/src/org/apache/fop/fo/flow/ExternalGraphic.java
@@ -37,8 +37,6 @@ public class ExternalGraphic extends FObj {
int width;
String id;
- ImageArea imageArea;
-
public ExternalGraphic(FONode parent) {
super(parent);
}
@@ -50,6 +48,9 @@ public class ExternalGraphic extends FObj {
}
protected InlineArea getInlineArea() {
+ if(url == null) {
+ return null;
+ }
url = ImageFactory.getURL(url);
// if we need to load this image to get its size
// FopImage fopimage = ImageFactory.getImage(url, userAgent);