[Mono-bugs] [Bug 80904][Wis] New - [System.Globalization.CompareInfo] Compare() crashes when comparing null strings
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Feb 19 17:25:43 EST 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by dmitchell at logos.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80904
--- shadow/80904 2007-02-19 17:25:42.000000000 -0500
+++ shadow/80904.tmp.7989 2007-02-19 17:25:42.000000000 -0500
@@ -0,0 +1,40 @@
+Bug#: 80904
+Product: Mono: Class Libraries
+Version: 1.0
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: dmitchell at logos.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [System.Globalization.CompareInfo] Compare() crashes when comparing null strings
+
+Please fill in this template when reporting a bug, unless you know what you are doing.
+Description of Problem:
+When Microsoft's implementation of CompareInfo.Compare receives null as a parameter, it treats
+it as the empty string. Mono's implementation throws a null reference exception.
+
+
+Steps to reproduce the problem:
+1. Use System.Globalization.CultureInfo.InvariantCulture.CompareInfo.Compare() to compare a
+non-null string to null, or to compare null to null.
+2. Watch the crash
+3.
+
+Actual Results:
+NullReferenceException
+
+Expected Results:
+The parameter should be treated as the empty string
+
+How often does this happen?
+Always
+
+Additional Information:
More information about the mono-bugs
mailing list