Author: spouliot
Date: 2005-04-14 09:27:10 -0400 (Thu, 14 Apr 2005)
New Revision: 43001
Modified:
trunk/mcs/class/corlib/System.Reflection/Assembly.cs
trunk/mcs/class/corlib/System.Reflection/ChangeLog
Log:
2005-04-14 Sebastien Pouliot <[EMAIL PROTECTED]>
* Assembly.cs: Added missing null check in GetObjectData.
Modified: trunk/mcs/class/corlib/System.Reflection/Assembly.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/Assembly.cs 2005-04-14
13:23:21 UTC (rev 43000)
+++ trunk/mcs/class/corlib/System.Reflection/Assembly.cs 2005-04-14
13:27:10 UTC (rev 43001)
@@ -162,6 +162,9 @@
public virtual void GetObjectData (SerializationInfo info,
StreamingContext context)
{
+ if (info == null)
+ throw new ArgumentNullException ("info");
+
UnitySerializationHolder.GetAssemblyData (this, info,
context);
}
Modified: trunk/mcs/class/corlib/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ChangeLog 2005-04-14 13:23:21 UTC
(rev 43000)
+++ trunk/mcs/class/corlib/System.Reflection/ChangeLog 2005-04-14 13:27:10 UTC
(rev 43001)
@@ -1,3 +1,7 @@
+2005-04-14 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * Assembly.cs: Added missing null check in GetObjectData.
+
2005-04-04 Sebastien Pouliot <[EMAIL PROTECTED]>
* AssemblyName.cs: Added a demand for SerializationFormatter on
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches