Bug 325126 (MONO82459) - [2.0] Argument(Null)Exception.ParamName not set
Summary: [2.0] Argument(Null)Exception.ParamName not set
Status: RESOLVED FIXED
Alias: MONO82459
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: 1.2
Hardware: Other All
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-16 21:48 UTC by Gert Driesen
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:48:52 UTC


---- Reported by gert.driesen@pandora.be 2007-08-16 14:48:46 MST ----

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.
...



---- Additional Comments From vargaz@gmail.com 2007-08-17 12:07:44 MST ----

Fixed in SVN.