diff options
author | Keiron Liddle <keiron@apache.org> | 2001-10-11 09:16:24 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-10-11 09:16:24 +0000 |
commit | cd8fe5f0219eedfa1a634e5c5e5c99efaa395f6a (patch) | |
tree | c1158faad74bbddf4a5d653052f11e854e2fbcb0 | |
parent | 9bdae5379ad37ea10dbbb649612d771ce0f45198 (diff) | |
download | xmlgraphics-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.java | 4 |
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); } |