mirror of
https://github.com/Readarr/Readarr
synced 2026-01-02 21:53:18 +01:00
Fixed: API error when sending payload without optional parameters
Co-authored-by: Qstick <qstick@gmail.com> (cherry picked from commit 8d83b1d8d66ef24a25f312bdeac1e5625a630c00)
This commit is contained in:
parent
10760471e0
commit
f34171444e
1 changed files with 4 additions and 1 deletions
|
|
@ -46,7 +46,10 @@ public static object ReadFromSchema(List<Field> fields, Type targetType)
|
|||
{
|
||||
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 a new issue