diff options
author | Jeremias Maerki <jeremias@apache.org> | 2008-01-25 09:59:29 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2008-01-25 09:59:29 +0000 |
commit | efee9986bd606e232cd547f431d39467dfd8a5e6 (patch) | |
tree | b46f9947fe69b5f6e337f62390100d39aead0d25 | |
parent | 8b281b7c15488402a4dd30d41c4d8e2359e92140 (diff) | |
download | xmlgraphics-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
-rw-r--r-- | lib/xmlgraphics-commons-1.3svn.jar | bin | 498867 -> 498800 bytes | |||
-rw-r--r-- | src/java/org/apache/fop/image/loader/batik/PreloaderSVG.java | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/lib/xmlgraphics-commons-1.3svn.jar b/lib/xmlgraphics-commons-1.3svn.jar Binary files differindex cc3c3c6da..75b10615a 100644 --- a/lib/xmlgraphics-commons-1.3svn.jar +++ b/lib/xmlgraphics-commons-1.3svn.jar 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; |