diff options
author | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2012-10-03 20:05:06 +0000 |
---|---|---|
committer | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2012-10-03 20:05:06 +0000 |
commit | 3c8928ee8f2e88096b7399b8f8fb9ff0c58eeced (patch) | |
tree | 092c93a0e531f5d09f634232a8f64e94ae9ef8e2 /bkucommon/src/main/java/at/gv/egiz/bku | |
parent | 7a6eabd80d2c57cb8018eb4eb98fb46b765ec189 (diff) | |
download | mocca-3c8928ee8f2e88096b7399b8f8fb9ff0c58eeced.tar.gz mocca-3c8928ee8f2e88096b7399b8f8fb9ff0c58eeced.tar.bz2 mocca-3c8928ee8f2e88096b7399b8f8fb9ff0c58eeced.zip |
Close some more streams
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1147 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon/src/main/java/at/gv/egiz/bku')
-rw-r--r-- | bkucommon/src/main/java/at/gv/egiz/bku/binding/XWWWFormUrlInputIterator.java | 3 |
1 files changed, 2 insertions, 1 deletions
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<FormParameter> { // 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; } |