aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/org/apache/fop/image/FopImageFactory.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/org/apache/fop/image/FopImageFactory.java b/src/org/apache/fop/image/FopImageFactory.java
index 9a2650c07..4e1ea97e6 100644
--- a/src/org/apache/fop/image/FopImageFactory.java
+++ b/src/org/apache/fop/image/FopImageFactory.java
@@ -76,6 +76,12 @@ public class FopImageFactory {
} catch (Exception e) {
// maybe relative
URL context_url = null;
+ String base = Configuration.getStringValue("baseDir");
+ if(base == null) {
+ throw new FopImageException("Error with image URL: "
+ + e.getMessage()
+ + " and no base directory is specified");
+ }
try {
absoluteURL = new URL(Configuration.getStringValue("baseDir")
+ absoluteURL.getFile());