2004-04-24 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
authorAndreas N <andreas@mono-cvs.ximian.com>
Sat, 24 Apr 2004 08:13:58 +0000 (08:13 -0000)
committerAndreas N <andreas@mono-cvs.ximian.com>
Sat, 24 Apr 2004 08:13:58 +0000 (08:13 -0000)
* String.cs: Check for null values

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

mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/String.cs

index 61f7244e295c19666ff178cbffd1fc56bd1dec12..0627e544eac226c35e6a7881d14e4d2aa9634cd5 100644 (file)
@@ -1,12 +1,16 @@
+2004-04-24  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * String.cs: Check for null values
+
 2004-04-23  Peter Bartok <pbartok@novell.com>
 
-   * Environment.cs: GetLogicalDrives now returns "/" instead of null. Gonzalo
-   will do a better fix in the future, but this way apps can at least use it.
+       * Environment.cs: GetLogicalDrives now returns "/" instead of null. Gonzalo
+         will do a better fix in the future, but this way apps can at least use it.
 
 2004-04-23  Sebastien Pouliot  <sebastien@ximian.com>
 
        * Environment.cs: Better support for GetFolderPath (same results as MS 
-       on Windows).
+         on Windows).
 
 2004-04-22  Lluis Sanchez Gual  <lluis@ximian.com>
 
 
 2004-04-16  David Sheldon <dave-mono@earth.li>
 
-  * DecimalFormatter.cs: Don't append a decimal point after the
-    end of a number. ((decimal)1).ToString("P0") should be "100 %", not
-    "100. %"
+       * DecimalFormatter.cs: Don't append a decimal point after the
+         end of a number. ((decimal)1).ToString("P0") should be "100 %", not
+         "100. %"
 
 2004-04-09  Miguel de Icaza  <miguel@ximian.com>
 
        * OutOfMemoryException.cs: Removed the call to Locale.GetText from
-       this.
+         this.
 
 2004-04-10  Gert Driesen (drieseng@users.sourceforge.net)
 
        * MonoDummy.cs: added MonoTODO to make sure we remove this class
-       when its no longer needed
+         when its no longer needed
 
 2004-04-09  David Sheldon <dave-mono@earth.li>
 
-    * Convert.cs: Allow + signs in strings for ToInt32, and
-       - if it is base 10.
+       * Convert.cs: Allow + signs in strings for ToInt32, and
+         - if it is base 10.
 
 2004-04-08  Atsushi Enomoto  <atsushi@ximian.com>
 
index 6d92bf96d80c38354604421e4c379c89efe85963..f85a442ce92143284b7c0781edf2aa8fb35a0293 100644 (file)
@@ -681,6 +681,9 @@ namespace System
 
                public String ToLower (CultureInfo culture)
                {
+                       if (culture == null)
+                               throw new ArgumentNullException ("culture");
+
                        return InternalToLower (culture);
                }
 
@@ -691,6 +694,9 @@ namespace System
 
                public String ToUpper (CultureInfo culture)
                {
+                       if (culture == null)
+                               throw new ArgumentNullException ("culture");
+
                        return InternalToUpper (culture);
                }