[Mono-bugs] [Bug 376171] New: SortKey.Compare does not throw ArgumentNullException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 2 02:17:46 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=376171


           Summary: SortKey.Compare does not throw ArgumentNullException
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: albright at wesay.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Given a valid SortKey sortKey, the following should all throw
ArgumentNullException

SortKey.Compare(null, null);
SortKey.Compare(null, sortKey);
SortKey.Compare(sortKey, null);

The first one actually returns 0.
The other two actually throw NullReferenceException.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list