mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-16 23:39:44 +02:00
Fixed: NullRef in SchemaBuilder when sending payload without optional Provider.Settings fields
This commit is contained in:
parent
2ae7371d73
commit
b2195148a2
@ -47,8 +47,11 @@ public static object ReadFromSchema(List<Field> fields, Type targetType)
|
|||||||
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…
Reference in New Issue
Block a user