* XmlTextWriter2.cs : null arg check. svn path=/trunk/mcs/; revision=65998
@@ -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 :
@@ -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)