From fde38938b887b2dfebd249b587ee6fcd6251fc54 Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Tue, 30 Sep 2014 10:06:31 -0700 Subject: [PATCH] fixed: HttpClient would fail with an unrelated exception --- src/NzbDrone.Common/Http/HttpClient.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NzbDrone.Common/Http/HttpClient.cs b/src/NzbDrone.Common/Http/HttpClient.cs index 5c864d7f6..1f3dacb82 100644 --- a/src/NzbDrone.Common/Http/HttpClient.cs +++ b/src/NzbDrone.Common/Http/HttpClient.cs @@ -80,6 +80,11 @@ public HttpResponse Execute(HttpRequest request) catch (WebException e) { httpWebResponse = (HttpWebResponse)e.Response; + + if (httpWebResponse == null) + { + throw; + } } Byte[] data = null;