]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fix exception when closing Source that doesn't have any streams.
authorJeremias Maerki <jeremias@apache.org>
Fri, 25 Jan 2008 09:59:29 +0000 (09:59 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 25 Jan 2008 09:59:29 +0000 (09:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615164 13f79535-47bb-0310-9956-ffa450edef68

lib/xmlgraphics-commons-1.3svn.jar
src/java/org/apache/fop/image/loader/batik/PreloaderSVG.java

index cc3c3c6daa7cc342e3dfa21034d724c70f2e0ad1..75b10615aabda7dc1554fc51ae6340210a48d749 100644 (file)
Binary files a/lib/xmlgraphics-commons-1.3svn.jar and b/lib/xmlgraphics-commons-1.3svn.jar differ
index db03cbbf2ed19e6c2cb12fe789a8b5029e6f5e54..e59e06b6b07a92a538b6f0aaf608b7e94292e3ee 100644 (file)
@@ -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;