aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/apps/Driver.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/apps/Driver.java')
-rw-r--r--src/java/org/apache/fop/apps/Driver.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/apps/Driver.java b/src/java/org/apache/fop/apps/Driver.java
index ed4f3b50e..e5ffada6e 100644
--- a/src/java/org/apache/fop/apps/Driver.java
+++ b/src/java/org/apache/fop/apps/Driver.java
@@ -38,8 +38,6 @@ import org.apache.fop.fo.FOTreeHandler;
import org.apache.fop.render.awt.AWTRenderer;
import org.apache.fop.render.mif.MIFHandler;
import org.apache.fop.render.rtf.RTFHandler;
-import org.apache.fop.tools.DocumentInputSource;
-import org.apache.fop.tools.DocumentReader;
/**
* Primary class that drives overall FOP process.
@@ -163,6 +161,9 @@ public class Driver implements Constants {
throw new IllegalStateException("Driver already initialized");
}
treeBuilder = new FOTreeBuilder();
+ if (foUserAgent == null) {
+ foUserAgent = new FOUserAgent();
+ }
}
/**