LoadValuesFromJson: allow null as input

This commit is contained in:
kaso17 2016-12-10 17:53:41 +01:00
parent ca2b4110bb
commit 6d26fb8f43
1 changed files with 3 additions and 0 deletions

View File

@ -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))
{