Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23636/NHibernate/Persister
Modified Files:
AbstractEntityPersister.cs
Log Message:
Switched order of null check to be before Equals because Mono does
not like have a null object passed into Equals.
Index: AbstractEntityPersister.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister/AbstractEntityPersister.cs,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** AbstractEntityPersister.cs 2 Sep 2004 15:11:01 -0000 1.24
--- AbstractEntityPersister.cs 10 Sep 2004 12:21:21 -0000 1.25
***************
*** 655,659 ****
//pis.Add( typeof(INHibernateProxy) );
// != null because we use arraylist instead of hashset
! if (!mappedClass.Equals(pi) && pi!=null )
{
pis.Add(pi);
--- 655,660 ----
//pis.Add( typeof(INHibernateProxy) );
// != null because we use arraylist instead of hashset
! // mono does not like a null value passed into Equals()
! if ( pi!=null && !mappedClass.Equals(pi) )
{
pis.Add(pi);
|