fixes a null check on membership provider, completes: U4-3962 publicize IMapperConfiguration
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user