Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Engine
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25527/NHibernate/Engine
Modified Files:
Key.cs
Log Message:
Added a check to see if the object was null. Don't know why this is being
called with a null object. The Debugger has the Count=0
Index: Key.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Engine/Key.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Key.cs 28 Mar 2004 06:04:36 -0000 1.4
--- Key.cs 24 May 2004 05:51:03 -0000 1.5
***************
*** 50,53 ****
--- 50,57 ----
{
Key otherKey = other as Key;
+ if(otherKey==null)
+ {
+ return false;
+ }
return otherKey.identifierSpace.Equals(this.identifierSpace) && otherKey.id.Equals(this.id);
}
|