aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2003-01-27 09:22:17 +0000
committerJeremias Maerki <jeremias@apache.org>2003-01-27 09:22:17 +0000
commitd3b17dd87de11f229a242ee110dbd0edf668cd3b (patch)
treef5bd4ca6c8beb739aa8eaad2206a22ccb2a79750
parentc0b4de31e41dd7d9b698a38db5f7aa479b322790 (diff)
downloadxmlgraphics-fop-d3b17dd87de11f229a242ee110dbd0edf668cd3b.tar.gz
xmlgraphics-fop-d3b17dd87de11f229a242ee110dbd0edf668cd3b.zip
Provide a fallback when no baseURL is set.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195898 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/org/apache/fop/fo/FOUserAgent.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/apache/fop/fo/FOUserAgent.java b/src/org/apache/fop/fo/FOUserAgent.java
index 5242a3470..ab4424270 100644
--- a/src/org/apache/fop/fo/FOUserAgent.java
+++ b/src/org/apache/fop/fo/FOUserAgent.java
@@ -81,7 +81,11 @@ public class FOUserAgent implements LogEnabled {
* @return the base URL
*/
public String getBaseURL() {
- return this.baseURL;
+ if ((this.baseURL == null) || (this.baseURL.trim().equals(""))) {
+ return "file:.";
+ } else {
+ return this.baseURL;
+ }
}
/**