Added null check when closing network request

Fixes #2307
This commit is contained in:
ByteHamster 2017-04-21 17:57:57 +02:00
parent 4f1d29d32f
commit 98001b51d9

View File

@ -568,7 +568,9 @@ public class GpodnetService {
e.printStackTrace();
throw new GpodnetServiceException(e);
} finally {
body.close();
if (body != null) {
body.close();
}
}
return responseString;
}