From: Michael D. <mik...@us...> - 2004-08-13 13:25:32
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Type In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24059/nhibernate/src/NHibernate/Type Modified Files: TypeType.cs Log Message: Fixed a stupid NullReferenceException. Index: TypeType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/TypeType.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TypeType.cs 10 Feb 2004 18:41:42 -0000 1.1 --- TypeType.cs 13 Aug 2004 13:25:23 -0000 1.2 *************** *** 107,110 **** --- 107,121 ---- public override bool Equals(object x, object y) { + + if(x==null && y==null) + { + return true; + } + + if(x==null || y==null) + { + return false; + } + return x.Equals(y); } |