Merge pull request #2900 from umbraco/temp8-validation-quirks

v8 validation quirks
This commit is contained in:
Mads Rasmussen
2018-09-06 15:00:05 +02:00
committed by GitHub
34 changed files with 1072 additions and 533 deletions

View File

@@ -23,7 +23,8 @@ namespace Umbraco.Web.Models.Mapping
public UserProfile Resolve(TPersisted source)
{
return Mapper.Map<IProfile, UserProfile>(source.GetCreatorProfile(_userService));
var profile = source.GetCreatorProfile(_userService);
return profile == null ? null : Mapper.Map<IProfile, UserProfile>(profile);
}
}
}