mirror of
https://github.com/Radarr/Radarr.git
synced 2026-03-05 13:21:25 -05:00
Fixed: NullRef in SchemaBuilder when sending payload without optional Provider.Settings fields
This commit is contained in:
@@ -47,7 +47,10 @@ namespace Radarr.Http.ClientSchema
|
||||
var propertyType = mapping.PropertyType;
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user