[Mono-bugs] [Bug 439766] New: NullReferenceException in the method GetTypeRefFromSig of class ReflectionReader

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 29 05:41:28 EDT 2008


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


           Summary: NullReferenceException in the method GetTypeRefFromSig
                    of class ReflectionReader
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: x86
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Cecil
        AssignedTo: jbevain at novell.com
        ReportedBy: spam at akitel.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Component Test


Mono.Cecil ver 0.6
class ReflectionReader
method GetTypeRefFromSig

switch( t.ElementType )
{
..
  case ElementType.ValueType:
  VALUETYPE vt = t as VALUETYPE;
  TypeReference vtr = GetTypeDefOrRef( vt.Type, context );
  vtr.IsValueType = true;
  return vtr;
..


Sometimes GetTypeDefOrRef() returns null and the next line:
vtr.IsValueType = true;
produce 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.


More information about the mono-bugs mailing list