[Mono-bugs] [Bug 23300] New - NullReferenceException in Report108()

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
11 Apr 2002 12:59:08 -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 dick@ximian.com.

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

--- shadow/23300	Thu Apr 11 08:59:08 2002
+++ shadow/23300.tmp.11736	Thu Apr 11 08:59:08 2002
@@ -0,0 +1,58 @@
+Bug#: 23300
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dick@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: NullReferenceException in Report108()
+
+Compiling nant, with:
+
+[dick@hagbard nant] [10:37]
+:; ~/mono/mono/mono/interpreter/mint ~/mono/mcs.exe --recurse 'src/*.cs'
+
+gives the following error:
+
+
+Unhandled exception System.NullReferenceException A null value was found
+where an object instance was required.
+#0: 0x00031 callvirt   in Mono.CSharp.TypeContainer::Report108 ([vt:
+0xbffff17c] [0x8680654] )
+#1: 0x000a1 call       in Mono.CSharp.TypeContainer::DefineMembers
+([0x8327194] [0x85c7970] )
+#2: 0x00059 call       in Mono.CSharp.TypeContainer::Define ([0x80c6904] )
+#3: 0x0009c callvirt   in Mono.CSharp.RootContext::PopulateTypes ()
+#4: 0x0091f call       in Mono.CSharp.Driver::MainDriver ([0x80c0e80] )
+#5: 0x00001 call       in Mono.CSharp.Driver::Main ([0x80c0e80] )
+
+
+Using --traceops seems to narrow it down to the mi.ReflectedType property
+being null when mi.ReflectedType.Name is accessed:
+
+            (1024) stack: [108] [vt: 0xbfffefac] [0x8578610] [3] [0x8680654] 
+            (1024) IL_002c: callvirt  0x0a0000be
+              (1024) Entering
+System.Reflection.Emit.FieldBuilder::get_ReflectedType (0x8680654 )
+              (1024) IL_0000: ldnull    
+              (1024) stack: [(nil)] 
+              (1024) IL_0001: stloc.0   
+              (1024) IL_0002: br.s      IL_0004
+              (1024) IL_0004: ldloc.0   
+              (1024) stack: [(nil)] 
+              (1024) IL_0005: ret       
+              (1024) Leaving
+System.Reflection.Emit.FieldBuilder::get_ReflectedType => [(nil)] 
+            (1024) stack: [108] [vt: 0xbfffefac] [0x8578610] [3] [(nil)] 
+            (1024) IL_0031: callvirt  0x0a000008
+              (1024) Entering System.NullReferenceException::.ctor (0x85b92e4 )
+              (1024) IL_0000: ldarg.0