mirror of https://github.com/lidarr/Lidarr
Fixed: NullRef in SchemaBuilder when sending payload without optional Provider.Settings fields
This commit is contained in:
parent
f106c01d43
commit
a93f55205a
|
@ -46,7 +46,10 @@ namespace Lidarr.Http.ClientSchema
|
|||
{
|
||||
var field = fields.Find(f => f.Name == mapping.Field.Name);
|
||||
|
||||
mapping.SetterFunc(target, field.Value);
|
||||
if (field != null)
|
||||
{
|
||||
mapping.SetterFunc(target, field.Value);
|
||||
}
|
||||
}
|
||||
|
||||
return target;
|
||||
|
|
Loading…
Reference in New Issue