[Mono-bugs] [Bug 25800] New - Stacktrace in uncaught exceptions display wrong int-type

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
5 Jun 2002 05:16:19 -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 sr@gimp.org.

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

--- shadow/25800	Wed Jun  5 01:16:19 2002
+++ shadow/25800.tmp.18331	Wed Jun  5 01:16:19 2002
@@ -0,0 +1,43 @@
+Bug#: 25800
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: sr@gimp.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Stacktrace in uncaught exceptions display wrong int-type
+
+The following code causes a terminal NullReferenceException. Note that the
+stacktrace reports the constructors argument to be of type 'uint', while it
+is actually an 'int':
+
+** (process:1602): WARNING **: unhandled exception
+System.NullReferenceException: "A null value was found where an object
+instance was required"
+in <0x00012> exceptionoutputtest.Test:.ctor (uint)
+in <0x0002d> exceptionoutputtest.Test:Main ()
+
+The Code:   
+   class Test
+   {
+      static private int[] array;
+
+      public Test( int x )
+      {
+         array[1] = x;
+      }
+
+      static void Main()
+      {
+         Test t = new Test(3);
+      }
+   }