From cd8fe5f0219eedfa1a634e5c5e5c99efaa395f6a Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Thu, 11 Oct 2001 09:16:24 +0000 Subject: [PATCH] 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 --- src/org/apache/fop/svg/SVGElement.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.39.5