Skip to content

Commit 34214f6

Browse files
committed
Handle null ParentInspector.Access
+semver:patch
1 parent 17e953c commit 34214f6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/FluentNHibernate/Conventions/Inspections/ParentInspector.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@ public string Name
3636

3737
public Access Access
3838
{
39-
get { return Access.FromString(mapping.Access); }
39+
get
40+
{
41+
if (mapping.Access != null)
42+
return Access.FromString(mapping.Access);
43+
44+
return null;
45+
}
4046
}
4147
}
4248
}

0 commit comments

Comments
 (0)