[Mono-bugs] [Bug 49878][Wis] New - XML serialization crashes on IEnumerable & ICollection
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 20 Oct 2003 13:04:42 -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 orphennui@yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=49878
--- shadow/49878 2003-10-20 13:04:42.000000000 -0400
+++ shadow/49878.tmp.28760 2003-10-20 13:04:42.000000000 -0400
@@ -0,0 +1,39 @@
+Bug#: 49878
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: orphennui@yahoo.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: XML serialization crashes on IEnumerable & ICollection
+
+When trying to serialize objects with public IEnumerable and ICollection
+members, I get the following exception:
+
+Unhandled Exception: System.NullReferenceException: A null value was found
+where an object instance was required
+in <0x001de> System.Xml.Serialization.TypeData:get_ListItemType ()
+in <0x000f2>
+System.Xml.Serialization.XmlReflectionImporter:ImportListMapping
+(System.Type,System.Xml.Serialization.XmlRootAttribute,string,System.Xml.Serialization.XmlAttributes,int)
+in <0x00e0f> System.Xml.Serialization.XmlReflectionImporter:CreateMapMember
+(System.Xml.Serialization.XmlReflectionMember,string)
+in <0x002e5>
+System.Xml.Serialization.XmlReflectionImporter:ImportClassMapping
+(System.Type,System.Xml.Serialization.XmlRootAttribute,string)
+in <0x0011a>
+System.Xml.Serialization.XmlReflectionImporter:ImportTypeMapping
+(System.Type,System.Xml.Serialization.XmlRootAttribute,string)
+in <0x000fa> System.Xml.Serialization.XmlSerializer:.ctor
+(System.Type,System.Xml.Serialization.XmlAttributeOverrides,System.Type[],System.Xml.Serialization.XmlRootAttribute,string)
+in <0x00021> System.Xml.Serialization.XmlSerializer:.ctor (System.Type)
+in <0x0007e> .Foo:Main ()