[Mono-bugs] [Bug 565120] New: Type.IsVisible might throw null reference exception

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Dec 16 07:06:18 EST 2009


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

http://bugzilla.novell.com/show_bug.cgi?id=565120#c0


           Summary: Type.IsVisible might throw null reference exception
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: tomas.matousek at microsoft.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
Media Center PC 6.0; InfoPath.3; MS-RTC LM 8; MALC)

using System;

public class D {
    public enum E {
      Foo = 1,
      Bar = 2
    }
}

class C {
  public static void Main() {
    Console.WriteLine(typeof(D.E[]).IsVisible);
  }
}



Reproducible: Always

Steps to Reproduce:
1. compile and run the code above
Actual Results:  
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at System.Type.get_IsVisible () [0x00000] in <filename unknown>:0
  at C.Main () [0x00000] in <filename unknown>:0

Expected Results:  
True

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