You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2009/10/02 17:41:32 UTC
svn commit: r821064 -
/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/bitmap/AbstractBitmapDocumentHandler.java
Author: jeremias
Date: Fri Oct 2 15:41:31 2009
New Revision: 821064
URL: http://svn.apache.org/viewvc?rev=821064&view=rev
Log:
Fixed possible NPE.
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/render/bitmap/AbstractBitmapDocumentHandler.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/bitmap/AbstractBitmapDocumentHandler.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/bitmap/AbstractBitmapDocumentHandler.java?rev=821064&r1=821063&r2=821064&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/bitmap/AbstractBitmapDocumentHandler.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/bitmap/AbstractBitmapDocumentHandler.java Fri Oct 2 15:41:31 2009
@@ -307,13 +307,14 @@
= BitmapRendererEventProducer.Provider.get(
getUserAgent().getEventBroadcaster());
eventProducer.stoppingAfterFirstPageNoFilename(this);
- }
- try {
- this.imageWriter.writeImage(
- this.currentImage, out,
- getSettings().getWriterParams());
- } finally {
- IOUtils.closeQuietly(out);
+ } else {
+ try {
+ this.imageWriter.writeImage(
+ this.currentImage, out,
+ getSettings().getWriterParams());
+ } finally {
+ IOUtils.closeQuietly(out);
+ }
}
}
} else {
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org