From 6d26fb8f43633f602adee8bfd90a6f0f6003d318 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Sat, 10 Dec 2016 17:53:41 +0100 Subject: [PATCH] LoadValuesFromJson: allow null as input --- src/Jackett/Models/IndexerConfig/ConfigurationData.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Jackett/Models/IndexerConfig/ConfigurationData.cs b/src/Jackett/Models/IndexerConfig/ConfigurationData.cs index 506add0de..221b49f05 100644 --- a/src/Jackett/Models/IndexerConfig/ConfigurationData.cs +++ b/src/Jackett/Models/IndexerConfig/ConfigurationData.cs @@ -40,6 +40,9 @@ namespace Jackett.Models.IndexerConfig public void LoadValuesFromJson(JToken json, IProtectionService ps= null) { + if (json == null) + return; + var arr = (JArray)json; foreach (var item in GetItems(forDisplay: false)) {