mirror of https://github.com/Jackett/Jackett
LoadValuesFromJson: allow null as input
This commit is contained in:
parent
ca2b4110bb
commit
6d26fb8f43
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue