From: Jeremias Maerki Date: Wed, 5 Jan 2005 21:06:37 +0000 (+0000) Subject: Only check for the outputStream to be non-null if no overriding renderer has been... X-Git-Tag: Root_Temp_KnuthStylePageBreaking~284 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1a11affabb97dffd1edcb8d9c876fc3cd16944e4;p=xmlgraphics-fop.git 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 --- 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"); }