jeremias 2005/01/05 13:06:37 Modified: src/java/org/apache/fop/render RendererFactory.java Log: 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. Revision Changes Path 1.2 +3 -3 xml-fop/src/java/org/apache/fop/render/RendererFactory.java Index: RendererFactory.java =================================================================== RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/render/RendererFactory.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- RendererFactory.java 10 Oct 2004 12:24:02 -0000 1.1 +++ RendererFactory.java 5 Jan 2005 21:06:37 -0000 1.2 @@ -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 @@ } 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"); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]