Mapping between array types causes a null-reference exception to be thrown

Bug #757088 reported by Philip Peitsch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Transmute
New
Undecided
Unassigned

Bug Description

Attempting to map between array types seems to cause some part of the builder to throw an exception. Stack trace is:

System.NullReferenceException : Object reference not set to an instance of an object.
at Transmute.ResourceMapper`1.<>c__DisplayClass5`2.<ConvertUsing>b__4(Type tf, Type tt, Object from, Object to, IResourceMapper`1 mapper, TContext context) in C:\Source\Bazaar\transmute\trunk\Transmute\ResourceMapper.cs: line 104
at Transmute.ResourceMapper`1.Map(Type fromType, Type toType, Object from, Object to, TContext context) in C:\Source\Bazaar\transmute\trunk\Transmute\ResourceMapper.cs: line 333
at Transmute.Internal.MapperUtils.CopyToList(IEnumerable source, IList destination, Type fromEntryType, Type toEntryType, IResourceMapper`1 mapper, TContext context) in C:\Source\Bazaar\transmute\trunk\Transmute\Internal\MapperUtils.cs: line 129
at Transmute.Internal.MapperUtils.CopyToArray(IEnumerable source, ref Array destination, Type fromEntryType, Type toEntryType, IResourceMapper`1 mapper, TContext context) in C:\Source\Bazaar\transmute\trunk\Transmute\Internal\MapperUtils.cs: line 142
at Transmute.Maps.MapArray`1.ArrayMapperEntry.Map(Type fromType, Type toType, Object from, Object to, IResourceMapper`1 mapper, TContext context) in C:\Source\Bazaar\transmute\trunk\Transmute\Maps\MapArray.cs: line 45
at Transmute.ResourceMapper`1.Map(Type fromType, Type toType, Object from, Object to, TContext context) in C:\Source\Bazaar\transmute\trunk\Transmute\ResourceMapper.cs: line 333
at Transmute.Builders.DelegateBuilder`1.<>c__DisplayClass18`2.<BuildAction>b__8(Type tfrom, Type tto, Object from, Object to, IResourceMapper`1 mapper, TContext context) in C:\Source\Bazaar\transmute\trunk\Transmute\Builders\DelegateBuilder.cs: line 60
at Transmute.MemberSetterAction`1.Invoke(Type fromType, Type toType, Object from, Object to, IResourceMapper`1 mapper, TContext context)
at Transmute.Builders.DelegateBuilder`1.<>c__DisplayClass10`2.<BuildAction>b__c(Type tfrom, Type tto, Object from, Object to, IResourceMapper`1 mapper, TContext context) in C:\Source\Bazaar\transmute\trunk\Transmute\Builders\DelegateBuilder.cs: line 94
at Transmute.ResourceMapper`1.Map(Type fromType, Type toType, Object from, Object to, TContext context) in C:\Source\Bazaar\transmute\trunk\Transmute\ResourceMapper.cs: line 333
<truncated>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.