1

Closed

Incorrect behaviour of the method AutoMapper.Configuration.FindTypeMap(object, Type, Type) when sourceType implements more than one interface

description

typeMap local variable is always overwritten.
 
For example, typeMap which is not null, was found on the first iteration of the foreach loop. Then on the second iteration after execution of the following line
 
typeMap = ((IConfigurationProvider)this).FindTypeMapFor(source, sourceInterface, destinationType);
 
typeMap becomes null. So even if one typeMap was found which is not null, the method will return null if subsequent calls to FindTypeMapFor return null.
Closed Apr 14, 2010 at 5:00 PM by jbogard
This one's definitely a bug, and fixed in the latest push. Check out the teamcity.codebetter.com site for the latest drop.Thanks!Jimmy

comments