Author: jackson
Date: 2005-03-03 02:27:07 -0500 (Thu, 03 Mar 2005)
New Revision: 41384
Modified:
trunk/mcs/class/System/System.ComponentModel/ChangeLog
trunk/mcs/class/System/System.ComponentModel/EventDescriptorCollection.cs
Log:
* EventDescriptorCollection.cs: Handle null in the constructor properly.
Modified: trunk/mcs/class/System/System.ComponentModel/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/ChangeLog 2005-03-03
06:38:35 UTC (rev 41383)
+++ trunk/mcs/class/System/System.ComponentModel/ChangeLog 2005-03-03
07:27:07 UTC (rev 41384)
@@ -1,3 +1,7 @@
+2005-03-02 Jackson Harper <[EMAIL PROTECTED]>
+
+ * EventDescriptorCollection.cs: Handle null in the constructor properly.
+
2005-02-12 Geoff Norton <[EMAIL PROTECTED]>
* CharConverter.cs: Implement the ability to convert from "".
Modified:
trunk/mcs/class/System/System.ComponentModel/EventDescriptorCollection.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/EventDescriptorCollection.cs
2005-03-03 06:38:35 UTC (rev 41383)
+++ trunk/mcs/class/System/System.ComponentModel/EventDescriptorCollection.cs
2005-03-03 07:27:07 UTC (rev 41384)
@@ -53,6 +53,9 @@
public EventDescriptorCollection (EventDescriptor[] events)
{
+ if (events == null)
+ return;
+
for (int i = 0; i < events.Length; i++)
this.Add (events[i]);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches