Skip to content

Commit c8124ea

Browse files
author
Nakul Sabharwal
committed
Added try catch while closing response stream
1 parent fedf358 commit c8124ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/com/microsoft/graph/http/CoreHttpProvider.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,11 @@ public MediaType contentType() {
401401
}
402402
} finally {
403403
if (!isBinaryStreamInput && in != null) {
404-
in.close();
404+
try{
405+
in.close();
406+
}catch(IOException e) {
407+
logger.logError(e.getMessage(), e);
408+
}
405409
}
406410
}
407411
} catch (final GraphServiceException ex) {

0 commit comments

Comments
 (0)