From 574568e71d38dd98507abd7bf92ff3b5f3a7a57b Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 4 Dec 2021 12:09:23 -0600 Subject: [PATCH] Optimize HandleJsonSelector() to avoid needless throws --- .../Indexers/Definitions/Cardigann/CardigannBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannBase.cs b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannBase.cs index 9ea8a57d9..1b46b05e7 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannBase.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannBase.cs @@ -271,7 +271,7 @@ namespace NzbDrone.Core.Indexers.Cardigann } } - return ApplyFilters(value.Trim(), selector.Filters, variables); + return ApplyFilters(value?.Trim(), selector.Filters, variables) ?? null; } protected Dictionary GetBaseTemplateVariables()