diff options
author | ByteHamster <info@bytehamster.com> | 2017-04-21 17:57:57 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2017-04-21 17:58:49 +0200 |
commit | 98001b51d943feca7ee885c07f41504977b5bd6f (patch) | |
tree | fa5cc1a30ade564d2d810f30fb58a3eec7328a9c /core | |
parent | 4f1d29d32f1005d6821abb12bffa292b371a56f6 (diff) | |
download | AntennaPod-98001b51d943feca7ee885c07f41504977b5bd6f.zip |
Added null check when closing network request
Fixes #2307
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/gpoddernet/GpodnetService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/gpoddernet/GpodnetService.java b/core/src/main/java/de/danoeh/antennapod/core/gpoddernet/GpodnetService.java index 0218b103a..4459fbd08 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/gpoddernet/GpodnetService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/gpoddernet/GpodnetService.java @@ -568,7 +568,9 @@ public class GpodnetService { e.printStackTrace(); throw new GpodnetServiceException(e); } finally { - body.close(); + if (body != null) { + body.close(); + } } return responseString; } |