[Mono-bugs] [Bug 82459][Nor] New - [2.0] Argument(Null)Exception.ParamName not set

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Aug 16 14:48:46 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gert.driesen at pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=82459

--- shadow/82459	2007-08-16 14:48:46.000000000 -0400
+++ shadow/82459.tmp.26058	2007-08-16 14:48:46.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 82459
+Product: Mono: Runtime
+Version: 1.2
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [2.0] Argument(Null)Exception.ParamName not set
+
+On the 2.0 profile, for some reason the ParamName of an 
+ArgumentNullException is not set in the runtime although the same code is 
+executed.
+
+To reproduce, compile the following code snippet using gmcs and run it:
+
+using System;
+using System.Reflection;
+
+class Program
+{
+	static void Main ()
+	{
+		Type t = typeof (Program);
+		Module module = t.Module;
+		module.GetField (null);
+	}
+}
+
+Expected result:
+
+Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
+Parameter name: name
+...
+
+Actual result:
+
+Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
+...


More information about the mono-bugs mailing list