Fixed
Details
Details
Assignee
Oskar Berggren
Oskar BerggrenReporter
RoryR
RoryRComponents
Fix versions
Affects versions
Priority
Who's Looking?
Open Who's Looking?
Created August 19, 2010 at 2:41 PM
Updated September 8, 2014 at 11:32 AM
Resolved February 9, 2013 at 1:29 PM
ICompositeUserType exposes properties which could return invalid values (PropertyNames and PropertyTypes), yet they are used without checking if the result is null.
The result is that BuildSessionFactory will throw a NullReferenceException if they are null, instead of an exception indicating the invalid state of the user-authored type.
Repro steps:
1) Create a type which implements ICompositeUserType and return null for PropertyNames and PropertyTypes.
2) Create a domain model where a property is a type using the custom ICompositeUserType created in Step 1.
3) Load the mapping file and call BuildSessionFactory
Expected:
An error describing the problem with the invalid ICompositeUserType
Actual:
A NullReferenceException