diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2009-03-17 10:56:21 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2009-03-17 10:56:21 +0300 |
commit | 65f82e7013c9eb33e161ad441993d7008be750d4 (patch) | |
tree | 13ba367071f5631b65469218ba86563d0f829534 /mcs/class/System.XML/System.Xml | |
parent | 19813940cf3f63903f2fb0017913b1acdc76bc74 (diff) |
2009-03-17 Atsushi Enomoto <atsushi@ximian.com>
* XmlTextWriter2.cs : some weird TextWriter has null Encoding.
Fixed bug #372525.
svn path=/trunk/mcs/; revision=129534
Diffstat (limited to 'mcs/class/System.XML/System.Xml')
-rw-r--r-- | mcs/class/System.XML/System.Xml/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.XML/System.Xml/XmlTextWriter2.cs | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/mcs/class/System.XML/System.Xml/ChangeLog b/mcs/class/System.XML/System.Xml/ChangeLog index 2f60e36a570..0314c3d5fea 100644 --- a/mcs/class/System.XML/System.Xml/ChangeLog +++ b/mcs/class/System.XML/System.Xml/ChangeLog @@ -1,3 +1,8 @@ +2009-03-17 Atsushi Enomoto <atsushi@ximian.com> + + * XmlTextWriter2.cs : some weird TextWriter has null Encoding. + Fixed bug #372525. + 2009-03-16 Atsushi Enomoto <atsushi@ximian.com> * XmlParserContext.cs : .NET has weird nametable initialization. diff --git a/mcs/class/System.XML/System.Xml/XmlTextWriter2.cs b/mcs/class/System.XML/System.Xml/XmlTextWriter2.cs index 49b87517348..306b686d996 100644 --- a/mcs/class/System.XML/System.Xml/XmlTextWriter2.cs +++ b/mcs/class/System.XML/System.Xml/XmlTextWriter2.cs @@ -259,6 +259,9 @@ namespace Mono.Xml public XmlTextWriter (TextWriter writer) { + if (writer == null) + throw new ArgumentNullException ("writer"); + ignore_encoding = (writer.Encoding == null); Initialize (writer); allow_doc_fragment = true; } |