aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2001-10-11 09:16:24 +0000
committerKeiron Liddle <keiron@apache.org>2001-10-11 09:16:24 +0000
commitcd8fe5f0219eedfa1a634e5c5e5c99efaa395f6a (patch)
treec1158faad74bbddf4a5d653052f11e854e2fbcb0
parent9bdae5379ad37ea10dbbb649612d771ce0f45198 (diff)
downloadxmlgraphics-fop-cd8fe5f0219eedfa1a634e5c5e5c99efaa395f6a.tar.gz
xmlgraphics-fop-cd8fe5f0219eedfa1a634e5c5e5c99efaa395f6a.zip
do not attempt to set base dir if not available
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194498 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/org/apache/fop/svg/SVGElement.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/apache/fop/svg/SVGElement.java b/src/org/apache/fop/svg/SVGElement.java
index 9ec955f22..3d098e32c 100644
--- a/src/org/apache/fop/svg/SVGElement.java
+++ b/src/org/apache/fop/svg/SVGElement.java
@@ -141,7 +141,9 @@ public class SVGElement extends SVGObj {
try {
String baseDir = Configuration.getStringValue("baseDir");
- ((SVGOMDocument)doc).setURLObject(new URL(baseDir));
+ if(baseDir != null) {
+ ((SVGOMDocument)doc).setURLObject(new URL(baseDir));
+ }
} catch (Exception e) {
log.error("Could not set base URL for svg", e);
}