Author: zoltan
Date: 2007-04-30 15:03:40 -0400 (Mon, 30 Apr 2007)
New Revision: 76505

Modified:
   trunk/mcs/class/corlib/System/ChangeLog
   trunk/mcs/class/corlib/System/Type.cs
Log:
2007-04-30  Zoltan Varga  <[EMAIL PROTECTED]>

        * Type.cs (Equals): Allow a null argument.


Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog     2007-04-30 17:43:32 UTC (rev 
76504)
+++ trunk/mcs/class/corlib/System/ChangeLog     2007-04-30 19:03:40 UTC (rev 
76505)
@@ -1,3 +1,7 @@
+2007-04-30  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * Type.cs (Equals): Allow a null argument.
+
 2007-04-27  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * Environment.cs (StackTrace): Avoid skipping a frame to be compatible 
with MS.

Modified: trunk/mcs/class/corlib/System/Type.cs
===================================================================
--- trunk/mcs/class/corlib/System/Type.cs       2007-04-30 17:43:32 UTC (rev 
76504)
+++ trunk/mcs/class/corlib/System/Type.cs       2007-04-30 19:03:40 UTC (rev 
76505)
@@ -421,6 +421,8 @@
                }
 
                public bool Equals (Type type) {
+                       if (type == null)
+                               return false;
                        return UnderlyingSystemType.EqualsInternal 
(type.UnderlyingSystemType);
                }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to