Oops had and where should be or

This commit is contained in:
Eric Reed 2014-09-15 13:31:03 -04:00
parent e360f01f26
commit c499bf0e57

View file

@ -135,7 +135,7 @@ namespace MediaBrowser.Server.Implementations.Connect
{
var webEx = (WebException) ex.InnerException;
if (webEx != null && webEx.Status != WebExceptionStatus.ProtocolError && ((HttpWebResponse)webEx.Response).StatusCode != HttpStatusCode.NotFound)
if (webEx == null || (webEx.Status != WebExceptionStatus.ProtocolError && ((HttpWebResponse)webEx.Response).StatusCode != HttpStatusCode.NotFound))
{
throw;
}