The problem is that the stream closing is within if(mimeTypes.isEmpty() ||
mimeTypes.size() > 1) {} block, thus the stream is not closed if there is
exactly one element in mimeTypes.
The stream should not even be opened if it is not deeded, or at least the
if statement should be moved within the try block, then the stream closing
in the finally block is always executed.
Nobody/Anonymous ( nobody ) - 2009-09-19 10:16
5
Closed
Fixed
Steven McArdle
Code
None
Public
|
Date: 2009-11-29 08:47 Stream now closed properly even if only one match exists in mimeTypes |
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | - | 2009-11-29 08:47 | smcardle |
| allow_comments | 1 | 2009-11-29 08:47 | smcardle |
| assigned_to | nobody | 2009-11-29 08:47 | smcardle |
| category_id | None | 2009-11-29 08:47 | smcardle |
| resolution_id | None | 2009-11-29 08:47 | smcardle |
| status_id | Open | 2009-11-29 08:47 | smcardle |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use