keiron 01/10/11 02:16:24 Modified: src/org/apache/fop/svg SVGElement.java Log: do not attempt to set base dir if not available Revision Changes Path 1.16 +4 -2 xml-fop/src/org/apache/fop/svg/SVGElement.java Index: SVGElement.java =================================================================== RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/SVGElement.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- SVGElement.java 2001/10/05 10:29:48 1.15 +++ SVGElement.java 2001/10/11 09:16:24 1.16 @@ -1,5 +1,5 @@ /* - * $Id: SVGElement.java,v 1.15 2001/10/05 10:29:48 keiron Exp $ + * $Id: SVGElement.java,v 1.16 2001/10/11 09:16:24 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -141,7 +141,9 @@ 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); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]