mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 13:57:11 -04:00
Fixed: NullRef in SchemaBuilder when sending payload without optional Provider.Settings fields
This commit is contained in:
parent
147cdf2cce
commit
62d15536df
1 changed files with 4 additions and 1 deletions
|
@ -47,7 +47,10 @@ namespace Prowlarr.Http.ClientSchema
|
||||||
var propertyType = mapping.PropertyType;
|
var propertyType = mapping.PropertyType;
|
||||||
var field = fields.Find(f => f.Name == mapping.Field.Name);
|
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;
|
return target;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue