]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
do not attempt to set base dir if not available
authorKeiron Liddle <keiron@apache.org>
Thu, 11 Oct 2001 09:16:24 +0000 (09:16 +0000)
committerKeiron Liddle <keiron@apache.org>
Thu, 11 Oct 2001 09:16:24 +0000 (09:16 +0000)
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

index 9ec955f2243b40bb70cac16eecf7f12c744880e4..3d098e32c9b57567036a2e203b0f9e9d5d2ca315 100644 (file)
@@ -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);
         }