aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-01-05 21:06:37 +0000
committerJeremias Maerki <jeremias@apache.org>2005-01-05 21:06:37 +0000
commit1a11affabb97dffd1edcb8d9c876fc3cd16944e4 (patch)
tree7aeacc2875850298c0b83037fccd242ff8167345 /src/java/org/apache/fop/render
parent647d875a73cf6d4a7499255b6800241bddd81a25 (diff)
downloadxmlgraphics-fop-1a11affabb97dffd1edcb8d9c876fc3cd16944e4.tar.gz
xmlgraphics-fop-1a11affabb97dffd1edcb8d9c876fc3cd16944e4.zip
Only check for the outputStream to be non-null if no overriding renderer has been set. People may wish to supply something other than an OutputStream.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198223 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render')
-rw-r--r--src/java/org/apache/fop/render/RendererFactory.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/render/RendererFactory.java b/src/java/org/apache/fop/render/RendererFactory.java
index c70e80ad8..0cb87e29c 100644
--- a/src/java/org/apache/fop/render/RendererFactory.java
+++ b/src/java/org/apache/fop/render/RendererFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2004 The Apache Software Foundation.
+ * Copyright 2004-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -118,7 +118,7 @@ public class RendererFactory {
} else {
if (renderType != Constants.RENDER_PRINT
&& renderType != Constants.RENDER_AWT) {
- if (out == null) {
+ if (out == null && userAgent.getRendererOverride() == null) {
throw new IllegalStateException(
"OutputStream has not been set");
}