Skip to content

Commit

Permalink
MM-682 / MM-683: S3 Content Reference Handler - initial fix for "exis…
Browse files Browse the repository at this point in the history
…ts" check (causing http connection pool timeout)

- fix compile error (port back to 0.3.N - since S3Object in SDK 1.4.7 does not support "close" method)
  • Loading branch information
montgolfiere committed Feb 1, 2018
1 parent 5abf261 commit a5055bc
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,11 @@ public boolean isContentReferenceExists(ContentReference contentReference)
}
finally
{
if (object != null)
if ((object != null) && (object.getObjectContent() != null))
{
try {
object.close();
try
{
object.getObjectContent().close();
}
catch (IOException ioe)
{
Expand Down

0 comments on commit a5055bc

Please sign in to comment.