aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/apps/CommandLineStarter.java
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-06-05 14:52:28 +0000
committerKeiron Liddle <keiron@apache.org>2002-06-05 14:52:28 +0000
commitd8510cb466c14d47630f544b210d35f6a37d3cbf (patch)
treee1140b7bbaf0404687644f8b05015e1240146c25 /src/org/apache/fop/apps/CommandLineStarter.java
parentbc15564c2d6a518ca1daca4ab78ab05e27336ffb (diff)
downloadxmlgraphics-fop-d8510cb466c14d47630f544b210d35f6a37d3cbf.tar.gz
xmlgraphics-fop-d8510cb466c14d47630f544b210d35f6a37d3cbf.zip
start to an improved mif handler
cleaner structures and logic for handling the mif document and elements uses the structure handler concept to create the mif document git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194855 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/apps/CommandLineStarter.java')
-rw-r--r--src/org/apache/fop/apps/CommandLineStarter.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/apache/fop/apps/CommandLineStarter.java b/src/org/apache/fop/apps/CommandLineStarter.java
index 45c01940f..c38e3dd26 100644
--- a/src/org/apache/fop/apps/CommandLineStarter.java
+++ b/src/org/apache/fop/apps/CommandLineStarter.java
@@ -66,8 +66,10 @@ public class CommandLineStarter extends Starter {
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(
commandLineOptions.getOutputFile()));
driver.setOutputStream(bos);
- driver.getRenderer().setOptions(
+ if(driver.getRenderer() != null) {
+ driver.getRenderer().setOptions(
commandLineOptions.getRendererOptions());
+ }
driver.render(parser, inputHandler.getInputSource());
bos.close();
System.exit(0);