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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to