Fixed: API error when sending payload without optional parameters

Co-authored-by: Qstick <qstick@gmail.com>

(cherry picked from commit 8d83b1d8d66ef24a25f312bdeac1e5625a630c00)
pull/1633/head
bakerboy448 3 years ago
parent 10760471e0
commit f34171444e

@ -46,7 +46,10 @@ namespace Readarr.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…
Cancel
Save