UmbracoMapper shouldn't throw an exception when trying to map a source property being null.
This commit is contained in:
@@ -191,7 +191,7 @@ namespace Umbraco.Core.Mapping
|
||||
private TTarget Map<TTarget>(object source, Type sourceType, MapperContext context)
|
||||
{
|
||||
if (source == null)
|
||||
throw new ArgumentNullException(nameof(source));
|
||||
return default;
|
||||
|
||||
var targetType = typeof(TTarget);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user