Browse Source

2006-09-27 Atsushi Enomoto <[email protected]>

	* XmlTextWriter2.cs : null arg check.


svn path=/trunk/mcs/; revision=65998
Atsushi Eno 19 years ago
parent
commit
2d523b995c

+ 4 - 0
mcs/class/System.XML/System.Xml/ChangeLog

@@ -1,3 +1,7 @@
+2006-09-27  Atsushi Enomoto <[email protected]>
+
+	* XmlTextWriter2.cs : null arg check.
+
 2006-09-26  Atsushi Enomoto <[email protected]>
 
 	* XmlDeclaration.cs :

+ 2 - 0
mcs/class/System.XML/System.Xml/XmlTextWriter2.cs

@@ -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)