[Mono-bugs] [Bug 481621] New: NRE thrown when trying to remove null element (not null LinkedListNode element)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Mar 3 15:33:44 EST 2009


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


           Summary: NRE thrown when trying to remove null element (not
                    null LinkedListNode element)
    Classification: Mono
           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: aaragoneses at novell.com
         QAContact: mono-bugs at lists.ximian.com
            Blocks: 480829
          Found By: ---


The following test crashes on Mono, while returns False in MS.NET.


namespace TestTest {

    public class Program
    {
        static int Main ()
        {
            LinkedList <object> l = new LinkedList<object> ();
            l.AddLast (new object ());
            bool success = l.Remove ((object)null);
            Console.WriteLine (success.ToString());
            return success ? 0 : 1;
        }
    }

}

-- 
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