[Mono-bugs] [Bug 524084] New: NRE during xml deserialization
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Jul 21 20:59:46 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=524084
Summary: NRE during xml deserialization
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.XML
AssignedTo: atsushi at ximian.com
ReportedBy: rkvinge at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=306697)
--> (http://bugzilla.novell.com/attachment.cgi?id=306697)
test case
User-Agent: Opera/10.00 (X11; Linux i686; U; en) Presto/2.2.2
see attached test case
Reproducible: Always
Steps to Reproduce:
compile and run attached test case
gmcs -debug:full NRE.cs -out:NRE.exe
-r:System.Runtime.Serialization.dll,System.Xml.Linq.dll
mono --debug NRE.exe
Actual Results:
Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
Parameter name: key
at
System.Collections.Generic.Dictionary`2[System.String,System.Xml.XmlDictionaryString].TryGetValue
(System.String key, System.Xml.XmlDictionaryString& value) [0x00000]
at System.Xml.XmlDictionary.Add (System.String value) [0x00011] in
/mono/main/git/moonlight/mcs/class/System.Runtime.Serialization/System.Xml/XmlDictionary.cs:84
at System.Xml.XmlSimpleDictionaryReader.Read () [0x00012] in
/mono/main/git/moonlight/mcs/class/System.Runtime.Serialization/System.Xml/XmlSimpleDictionaryReader.cs:255
at System.Xml.XmlReader.MoveToContent () [0x00070] in
/mono/main/git/moonlight/mcs/class/System.XML/System.Xml/XmlReader.cs:560
at System.Runtime.Serialization.XmlFormatterDeserializer.Deserialize
(System.Xml.XmlReader reader, System.Type type,
System.Runtime.Serialization.KnownTypeCollection knownTypes,
IDataContractSurrogate surrogate, System.String name, System.String ns, Boolean
verifyObjectName) [0x00000] in
/mono/main/git/moonlight/mcs/class/System.Runtime.Serialization/System.Runtime.Serialization/XmlFormatterDeserializer.cs:56
at System.Runtime.Serialization.DataContractSerializer.ReadObject
(System.Xml.XmlDictionaryReader reader, Boolean verifyObjectName) [0x00024] in
/mono/main/git/moonlight/mcs/class/System.Runtime.Serialization/System.Runtime.Serialization/DataContractSerializer.cs:266
at System.Runtime.Serialization.XmlObjectSerializer.ReadObject
(System.Xml.XmlDictionaryReader reader) [0x00000] in
/mono/main/git/moonlight/mcs/class/System.Runtime.Serialization/System.Runtime.Serialization/XmlObjectSerializer.cs:74
at System.Runtime.Serialization.DataContractSerializer.ReadObject
(System.Xml.XmlReader reader) [0x00000] in
/mono/main/git/moonlight/mcs/class/System.Runtime.Serialization/System.Runtime.Serialization/DataContractSerializer.cs:255
at T.Main () [0x00014] in /home/rolf/test/itv/old/serialization2/NRE.cs:19
Expected Results:
No exception
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list