[Mono-bugs] [Bug 519648] New: DataRowCollection Find exception System.IndexOutOfRangeException when passed new object [] {null}

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jul 6 19:50:46 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=519648


           Summary: DataRowCollection Find exception
                    System.IndexOutOfRangeException when passed new object
                    [] {null}
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Data
        AssignedTo: bnc-blr-team-mono at forge.provo.novell.com
        ReportedBy: markstrobert at users.sourceforge.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=303320)
 --> (http://bugzilla.novell.com/attachment.cgi?id=303320)
sample program to show problem

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11)
Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11

DataRowCollection drc = table.Rows;
DataRow result = drc.Find(new object [] {null});

In Mono this throws System.IndexOutOfRangeException.
In .NET it doesn't.

Reproducible: Always

Steps to Reproduce:
1. Compile and run attached sample program.
2. Observe System.IndexOutOfRangeException thrown.
Actual Results:  
System.IndexOutOfRangeException thrown

Expected Results:  
Not thrown the exception, but behaved like .NET.

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


More information about the mono-bugs mailing list