From: Jeremias Maerki Date: Fri, 25 Jan 2008 09:59:29 +0000 (+0000) Subject: Fix exception when closing Source that doesn't have any streams. X-Git-Tag: fop-0_95beta~135 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=efee9986bd606e232cd547f431d39467dfd8a5e6;p=xmlgraphics-fop.git Fix exception when closing Source that doesn't have any streams. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615164 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/xmlgraphics-commons-1.3svn.jar b/lib/xmlgraphics-commons-1.3svn.jar index cc3c3c6da..75b10615a 100644 Binary files a/lib/xmlgraphics-commons-1.3svn.jar and b/lib/xmlgraphics-commons-1.3svn.jar differ diff --git a/src/java/org/apache/fop/image/loader/batik/PreloaderSVG.java b/src/java/org/apache/fop/image/loader/batik/PreloaderSVG.java index db03cbbf2..e59e06b6b 100644 --- a/src/java/org/apache/fop/image/loader/batik/PreloaderSVG.java +++ b/src/java/org/apache/fop/image/loader/batik/PreloaderSVG.java @@ -76,7 +76,7 @@ public class PreloaderSVG extends AbstractImagePreloader { return null; } } - if (info != null && ImageUtil.hasInputStream(src)) { + if (info != null) { ImageUtil.closeQuietly(src); //Image is fully read } return info;