U4-7522 Removed unnecessary exception from DeepCloneHelper.

This commit is contained in:
Andrey Shchekin
2015-12-10 14:33:52 +13:00
parent 220446afec
commit b3e21e0827

View File

@@ -79,6 +79,12 @@ namespace Umbraco.Core.Models
else
{
//its a custom IEnumerable, we'll try to create it
if (propertyInfo.PropertyType.IsAbstract || propertyInfo.PropertyType.IsInterface)
{
//these will always produce an exception, skipping early
continue;
}
try
{
var custom = Activator.CreateInstance(propertyInfo.PropertyType);