372190: HttpContent.getIndirectBuffer() close InputStream null check
This commit is contained in:
parent
9adabd0f2a
commit
19fae56d6d
|
@ -100,13 +100,16 @@ public interface HttpContent
|
|||
}
|
||||
finally
|
||||
{
|
||||
try
|
||||
if (inputStream != null)
|
||||
{
|
||||
inputStream.close();
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
LOG.warn("Couldn't close inputStream. Possible file handle leak",e);
|
||||
try
|
||||
{
|
||||
inputStream.close();
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
LOG.warn("Couldn't close inputStream. Possible file handle leak",e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue