keiron 01/10/11 02:13:33 Modified: src/org/apache/fop/image FopImageFactory.java Log: throws a different error if base dir not specified Revision Changes Path 1.25 +7 -1 xml-fop/src/org/apache/fop/image/FopImageFactory.java Index: FopImageFactory.java =================================================================== RCS file: /home/cvs/xml-fop/src/org/apache/fop/image/FopImageFactory.java,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- FopImageFactory.java 2001/09/18 08:17:07 1.24 +++ FopImageFactory.java 2001/10/11 09:13:33 1.25 @@ -1,5 +1,5 @@ /* - * $Id: FopImageFactory.java,v 1.24 2001/09/18 08:17:07 keiron Exp $ + * $Id: FopImageFactory.java,v 1.25 2001/10/11 09:13:33 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. @@ -76,6 +76,12 @@ } catch (Exception e) { // maybe relative URL context_url = null; + String base = Configuration.getStringValue("baseDir"); + if(base == null) { + throw new FopImageException("Error with image URL: " + + e.getMessage() + + " and no base directory is specified"); + } try { absoluteURL = new URL(Configuration.getStringValue("baseDir") + absoluteURL.getFile());
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]