[Mono-bugs] [Bug 28260][Maj] New - Unhandled Exception calling Type.GetMethod()

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
26 Jul 2002 23:41:43 -0000


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 kiwnix@yahoo.es.

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

--- shadow/28260	Fri Jul 26 19:41:43 2002
+++ shadow/28260.tmp.32650	Fri Jul 26 19:41:43 2002
@@ -0,0 +1,54 @@
+Bug#: 28260
+Product: Mono/Runtime
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: alp debian sid packages
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: kiwnix@yahoo.es               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Unhandled Exception calling Type.GetMethod()
+
+Description of Problem:
+
+Mono Get Out a unhandled exception System.NullReferenceException when
+calling Type.GetMethod() in a Method with strings as method parameters.
+
+Actual Results:
+
+** (process:2018): WARNING **: unhandled exception
+System.NullReferenceException: "A null value was found where an object
+instance was required"
+in <0x0002f> .prueba:Main ()
+
+Expected Results:
+
+none
+
+Additional Information:
+Test Case:
+
+
+using System;
+using System.Reflection;
+
+
+class prueba
+{
+        public void MyMethod (out string par2, ref string par3)
+        {
+                //par2= "in Mymethod";
+        }
+        public static void Main()
+        {
+                Type MyType = Type.GetType("prueba");
+                MethodBase Mymethodbase = MyType.GetMethod("Mymethod");
+        }
+}