ArgumentNullException with collection #3855
oriolaakeem
started this conversation in
NA
Replies: 1 comment 3 replies
-
A repro would help. Make a gist that we can execute and see fail. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ArgumentNullException: Value cannot be null. (Parameter 'property')
System.Linq.Expressions.Expression.Property(Expression expression, PropertyInfo property)
AutoMapper.Execution.ExpressionBuilder.ForEach(ParameterExpression loopVar, Expression collection, Expression loopContent)
AutoMapper.Internal.Mappers.CollectionMapper.g__MapCollectionCore|2_1(Expression destExpression, ref <>c__DisplayClass2_0 )
AutoMapper.Internal.Mappers.CollectionMapper.MapExpression(IGlobalConfiguration configurationProvider, ProfileMap profileMap, MemberMap memberMap, Expression sourceExpression, Expression destExpression)
AutoMapper.Execution.ExpressionBuilder.MapExpression(IGlobalConfiguration configurationProvider, ProfileMap profileMap, TypePair typePair, Expression sourceParameter, MemberMap propertyMap, Expression destinationParameter)
AutoMapper.Execution.TypeMapPlanBuilder.MapMember(MemberMap memberMap, Expression destinationMemberValue, ParameterExpression resolvedValue)
AutoMapper.Execution.TypeMapPlanBuilder.CreatePropertyMapFunc(MemberMap memberMap, Expression destination, MemberInfo destinationMember)
AutoMapper.Execution.TypeMapPlanBuilder.CreateAssignmentFunc(Expression createDestination)
AutoMapper.Execution.TypeMapPlanBuilder.CreateMapperLambda(HashSet typeMapsPath)
AutoMapper.TypeMap.Seal(IGlobalConfiguration configurationProvider, HashSet typeMapsPath)
AutoMapper.MapperConfiguration.Seal()
AutoMapper.MapperConfiguration..ctor(MapperConfigurationExpression configurationExpression)
Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions+<>c.b__12_2(IServiceProvider sp)
Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable parameters)
Autofac.Core.Activators.Delegate.DelegateActivator.b__2_0(ResolveRequestContext ctxt, Action next)
Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action next)
Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action next)
Source/destination types
// Put your source/destination types here
Mapping configuration
// Mapper.Initialize or just the CreateMap snippet
Version: 11.0.0
Expected behavior
Actual behavior
Steps to reproduce
// Your calls to Mapper.Map or ProjectTo here, with source/destination objects constructed
Beta Was this translation helpful? Give feedback.
All reactions