Skip to content

Commit 82f3dc8

Browse files
author
Mike Doerfler
committed
Switched order of null check to be before Equals because Mono does
not like have a null object passed into Equals. SVN: trunk@949
1 parent 9e5cbfe commit 82f3dc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NHibernate/Persister/AbstractEntityPersister.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,8 @@ protected AbstractEntityPersister(PersistentClass model, ISessionFactoryImplemen
654654
pis.Add(typeof(HibernateProxy));
655655
//pis.Add( typeof(INHibernateProxy) );
656656
// != null because we use arraylist instead of hashset
657-
if (!mappedClass.Equals(pi) && pi!=null )
657+
// mono does not like a null value passed into Equals()
658+
if ( pi!=null && !mappedClass.Equals(pi) )
658659
{
659660
pis.Add(pi);
660661
}

0 commit comments

Comments
 (0)