Hi,
I'm using NHibernate 1.2GA, and when I try to define a mapping as below I generate a NullReferenceException when I try to comile the mapping document.
Code:
<dynamic-component name="CustomColumns">
<set name="col_41" table="bugs_col_41_columnvalues" schema="bugs">
...
</set>
</dynamic-component>
The exception is thrown on line 879 of HbmBinder.cs because the function GetPropertyType returns null if its argument containingType is null. I have fixed this locally by chnging line 876 from:
Code:
if (!isGeneric.HasValue)
to
Code:
if (!isGeneric.HasValue && containingType != null)
Is this a bug, or is it (quite possibly) my misuse of the libary. If its the former then I'll submit this to the bugs db?
Cheers
Chris