From: Keiron Liddle Date: Thu, 11 Oct 2001 09:16:24 +0000 (+0000) Subject: do not attempt to set base dir if not available X-Git-Tag: fop-0_20_3~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cd8fe5f0219eedfa1a634e5c5e5c99efaa395f6a;p=xmlgraphics-fop.git 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 --- 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); }