aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-01-25 09:59:29 +0000
committerJeremias Maerki <jeremias@apache.org>2008-01-25 09:59:29 +0000
commitefee9986bd606e232cd547f431d39467dfd8a5e6 (patch)
treeb46f9947fe69b5f6e337f62390100d39aead0d25 /src/java/org/apache
parent8b281b7c15488402a4dd30d41c4d8e2359e92140 (diff)
downloadxmlgraphics-fop-efee9986bd606e232cd547f431d39467dfd8a5e6.tar.gz
xmlgraphics-fop-efee9986bd606e232cd547f431d39467dfd8a5e6.zip
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
Diffstat (limited to 'src/java/org/apache')
-rw-r--r--src/java/org/apache/fop/image/loader/batik/PreloaderSVG.java2
1 files changed, 1 insertions, 1 deletions
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;