Author: atsushi
Date: 2005-04-17 12:38:21 -0400 (Sun, 17 Apr 2005)
New Revision: 43147

Modified:
   trunk/mcs/class/corlib/System.Globalization/ChangeLog
   trunk/mcs/class/corlib/System.Globalization/TextInfo.cs
Log:
2005-04-17  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * TextInfo.cs : extremely strict null check (which should not happen).



Modified: trunk/mcs/class/corlib/System.Globalization/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/ChangeLog       2005-04-17 
16:14:54 UTC (rev 43146)
+++ trunk/mcs/class/corlib/System.Globalization/ChangeLog       2005-04-17 
16:38:21 UTC (rev 43147)
@@ -1,5 +1,9 @@
 2005-04-17  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
+       * TextInfo.cs : extremely strict null check (which should not happen).
+
+2005-04-17  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
        * TextInfo.cs : Additional null check for Parent CultureInfo.
 
 2005-04-06  Atsushi Enomoto  <[EMAIL PROTECTED]>

Modified: trunk/mcs/class/corlib/System.Globalization/TextInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/TextInfo.cs     2005-04-17 
16:14:54 UTC (rev 43146)
+++ trunk/mcs/class/corlib/System.Globalization/TextInfo.cs     2005-04-17 
16:38:21 UTC (rev 43147)
@@ -216,7 +216,7 @@
                // (enumerable enough).
                public virtual char ToLower (char c)
                {
-                       if (ci.LCID == 0x7F)
+                       if (ci == null || ci.LCID == 0x7F)
                                return Char.ToLowerInvariant (c);
 
                        switch ((int) c) {
@@ -258,7 +258,7 @@
 
                public virtual char ToUpper (char c)
                {
-                       if (ci.LCID == 0x7F)
+                       if (ci == null || ci.LCID == 0x7F)
                                return Char.ToUpperInvariant (c);
 
                        switch (c) {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to