[Mono-bugs] [Bug 430517] New: Failed to import weird method

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Sep 28 17:43:33 EDT 2008


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


           Summary: Failed to import weird method
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: Cecil
        AssignedTo: jbevain at novell.com
        ReportedBy: high6 at live.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


I need to import this method.

[DebuggerHidden]
private static T Create__Instance__<T>(T instance) where T: new()
{
    if (instance == null)
    {
        return Activator.CreateInstance<T>();
    }
    return instance;
}


but I get the exception

Object reference not set to an instance of an object.

on line

122: p = context.GenericContext.Method.GenericParameters [gp.Position];

in DefaultImporter.cs


-- 
Configure bugmail: https://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