From a794ed88606120cebd2896304b9e496c023a79d0 Mon Sep 17 00:00:00 2001 From: Qstick Date: Thu, 3 May 2018 21:52:05 -0400 Subject: [PATCH] Fixed: Null Error on Gazelle Auth Fail --- src/NzbDrone.Core/Indexers/Gazelle/GazelleRequestGenerator.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Indexers/Gazelle/GazelleRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Gazelle/GazelleRequestGenerator.cs index 7a9616ee3..d403d3479 100644 --- a/src/NzbDrone.Core/Indexers/Gazelle/GazelleRequestGenerator.cs +++ b/src/NzbDrone.Core/Indexers/Gazelle/GazelleRequestGenerator.cs @@ -4,6 +4,7 @@ using NzbDrone.Common.Http; using NzbDrone.Core.IndexerSearch.Definitions; using NzbDrone.Common.Cache; using NLog; +using NzbDrone.Common.Extensions; using NzbDrone.Common.Serializer; namespace NzbDrone.Core.Indexers.Gazelle @@ -125,7 +126,7 @@ namespace NzbDrone.Core.Indexers.Gazelle var index = GetIndex(cookies); - if (index.Status != "success" || string.IsNullOrWhiteSpace(index.Status)) + if (index.Status.IsNullOrWhiteSpace() || index.Status != "success") { Logger.Debug("Gazelle authentication failed."); throw new Exception("Failed to authenticate with Gazelle.");