fixes a null check on membership provider, completes: U4-3962 publicize IMapperConfiguration

This commit is contained in:
Shannon
2014-01-09 13:32:39 +11:00
parent 49cfeee5b0
commit fc18189fc8
3 changed files with 4 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ namespace Umbraco.Core.Models.Mapping
/// All automapper configurations are done during startup
/// inside an Automapper Initialize call which is better for performance
/// </remarks>
internal interface IMapperConfiguration : IApplicationEventHandler
public interface IMapperConfiguration : IApplicationEventHandler
{
void ConfigureMappings(IConfiguration config, ApplicationContext applicationContext);
}

View File

@@ -8,7 +8,7 @@ namespace Umbraco.Core.Models.Mapping
/// <remarks>
/// Use this class if your mapper configuration isn't also explicitly an ApplicationEventHandler.
/// </remarks>
internal abstract class MapperConfiguration : ApplicationEventHandler, IMapperConfiguration
public abstract class MapperConfiguration : ApplicationEventHandler, IMapperConfiguration
{
public abstract void ConfigureMappings(IConfiguration config, ApplicationContext applicationContext);
}

View File

@@ -782,7 +782,8 @@ namespace umbraco.providers.members
{
if (string.IsNullOrEmpty(propertyTypeAlias) == false)
{
if (m.Properties[propertyTypeAlias] != null &&
if (m.Properties.Contains(propertyTypeAlias) &&
m.Properties[propertyTypeAlias] != null &&
m.Properties[propertyTypeAlias].Value != null)
{
if (isBool)