Fixed: NullRef in SchemaBuilder when sending payload without optional Provider.Settings fields

pull/6854/head
Qstick 3 years ago
parent 2ae7371d73
commit b2195148a2

@ -47,8 +47,11 @@ namespace Radarr.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);
if (field != null)
{
mapping.SetterFunc(target, field.Value); mapping.SetterFunc(target, field.Value);
} }
}
return target; return target;
} }

Loading…
Cancel
Save