From 3c8928ee8f2e88096b7399b8f8fb9ff0c58eeced Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 3 Oct 2012 20:05:06 +0000 Subject: Close some more streams git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1147 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../src/main/java/at/gv/egiz/bku/binding/XWWWFormUrlInputIterator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bkucommon/src/main/java/at/gv/egiz/bku') diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/binding/XWWWFormUrlInputIterator.java b/bkucommon/src/main/java/at/gv/egiz/bku/binding/XWWWFormUrlInputIterator.java index 0c648a7e..4a715eee 100644 --- a/bkucommon/src/main/java/at/gv/egiz/bku/binding/XWWWFormUrlInputIterator.java +++ b/bkucommon/src/main/java/at/gv/egiz/bku/binding/XWWWFormUrlInputIterator.java @@ -181,7 +181,8 @@ public class XWWWFormUrlInputIterator implements Iterator { // fill buffer if empty if (pos >= count) { if ((count = in.read(buf)) == -1) { - throw new IOException("Invalid URL encoding."); + urldec.close(); + throw new IOException("Invalid URL encoding."); } pos = 0; } -- cgit v1.2.3