Nullable types may incorrectly call convert with a destination argument of null

Bug #719161 reported by Philip Peitsch on 2011-02-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Transmute
Undecided
Unassigned

Bug Description

Mapping between nullable types using a custom converter may cause a null reference exception to be thrown.

E.g.,
enum CustomEnum { Something }

class Src { CustomEnum? Enum }
class Dst { int? Enum }

mapping.ConvertUsing<CustomEnum, int>(o => (int)o)

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

Other bug subscribers