mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
LoadValuesFromJson: allow null as input
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user