2006-09-27 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Wed, 27 Sep 2006 20:58:34 +0000 (20:58 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Wed, 27 Sep 2006 20:58:34 +0000 (20:58 -0000)
* XmlTextWriter2.cs : null arg check.

svn path=/trunk/mcs/; revision=65998

mcs/class/System.XML/System.Xml/ChangeLog
mcs/class/System.XML/System.Xml/XmlTextWriter2.cs

index 76a36a7b807de8fc6f118dbaf281e82028381f36..1681cd7bf2466ecfa979a093f76569e8b2fd56fe 100644 (file)
@@ -1,3 +1,7 @@
+2006-09-27  Atsushi Enomoto <atsushi@ximian.com>
+
+       * XmlTextWriter2.cs : null arg check.
+
 2006-09-26  Atsushi Enomoto <atsushi@ximian.com>
 
        * XmlDeclaration.cs :
index 42f081092148f4897ed7a3cb437edb17128c7c37..6ac77c08e01a4f90430261ecf6bdce764e914e60 100644 (file)
@@ -281,6 +281,8 @@ namespace Mono.Xml
 
                void Initialize (TextWriter writer)
                {
+                       if (writer == null)
+                               throw new ArgumentNullException ("writer");
                        XmlNameTable name_table = new NameTable ();
                        this.writer = writer;
                        if (writer is StreamWriter)