[Mono-bugs] [Bug 67033][Nor] New - NullReferenceException in BaseNumberConverter
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 28 Sep 2004 19:23:14 -0400 (EDT)
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 sr@sander.yi.org.
http://bugzilla.ximian.com/show_bug.cgi?id=67033
--- shadow/67033 2004-09-28 19:23:14.000000000 -0400
+++ shadow/67033.tmp.28530 2004-09-28 19:23:14.000000000 -0400
@@ -0,0 +1,49 @@
+Bug#: 67033
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: sr@sander.yi.org
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: NullReferenceException in BaseNumberConverter
+
+Description of Problem:
+I get a null reference exception when calling
+TypeConverter.ConvertTo(object, Type)
+
+
+Steps to reproduce the problem:
+using System;
+using System.ComponentModel;
+
+public class Test
+{
+ public static void Main(String[] args)
+ {
+ object o = 3;
+ TypeDescriptor.GetConverter(o).ConvertTo(o,typeof(string));
+ }
+}
+
+Actual Results:
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+in <0x00056> System.ComponentModel.BaseNumberConverter:ConvertTo
+(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,object,System.Type)
+in <0x00016> System.ComponentModel.TypeConverter:ConvertTo (object,System.Type)
+in <0x00039> Test:Main (string[])
+
+
+Expected Results:
+clean run
+
+always