]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Only check for the outputStream to be non-null if no overriding renderer has been...
authorJeremias Maerki <jeremias@apache.org>
Wed, 5 Jan 2005 21:06:37 +0000 (21:06 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 5 Jan 2005 21:06:37 +0000 (21:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198223 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/RendererFactory.java

index c70e80ad85bad8938388b4dd1f4f8de46b3f2fc5..0cb87e29c66764b696ea5464addf0a3859989009 100644 (file)
@@ -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");
                 }