[Mono-bugs] [Bug 59833][Nor] New - NullReferenceException calling IsSerialized on EnumBuilder

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 8 Jun 2004 16:21:49 -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 gert.driesen@pandora.be.

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

--- shadow/59833	2004-06-08 16:21:49.000000000 -0400
+++ shadow/59833.tmp.17790	2004-06-08 16:21:49.000000000 -0400
@@ -0,0 +1,35 @@
+Bug#: 59833
+Product: Mono: Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: NullReferenceException calling IsSerialized on EnumBuilder
+
+When calling IsSerializable on an complete EnumBuilder, the following 
+NullReferenceException is thrown :
+
+Unhandled Exception: System.NullReferenceException: Object reference not 
+set to
+an instance of an object
+in (unmanaged) (wrapper managed-to-native) System.Type:type_is_subtype_of 
+(Syste
+m.Type,System.Type,bool)
+in <0x00004> (wrapper managed-to-native) System.Type:type_is_subtype_of 
+(System.
+Type,System.Type,bool)
+in <0x00017> System.Type:get_IsEnum ()
+in <0x0001e> System.Type:get_IsSerializable ()
+in <0x00126> EntryPoint:Main ()
+
+I attached a repro for this issue.