Skip to content

Commit 3c15235

Browse files
moukjagregory
authored andcommitted
Fixed a bug throwing an exception when mapping an interface to a column using UserType
1 parent ef4e4ae commit 3c15235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FluentNHibernate/Mapping/Member.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ public static IEnumerable<Member> GetInstanceMembers(this Type type)
490490
type.GetInstanceFields().Each(x => members.Add(x));
491491
type.GetInstanceMethods().Each(x => members.Add(x));
492492

493-
if (type.BaseType != typeof(object))
493+
if (type.BaseType != null && type.BaseType != typeof(object))
494494
type.BaseType.GetInstanceMembers().Each(x => members.Add(x));
495495

496496
return members;

0 commit comments

Comments
 (0)