[Mono-bugs] [Bug 26603][Nor] New - nullref exception when mcs finds a not defined attribute
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
20 Jun 2002 12:02:20 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by lupus@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=26603
--- shadow/26603 Thu Jun 20 08:02:20 2002
+++ shadow/26603.tmp.16294 Thu Jun 20 08:02:20 2002
@@ -0,0 +1,37 @@
+Bug#: 26603
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: lupus@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: nullref exception when mcs finds a not defined attribute
+
+It happens on either runtime.
+class T {
+ [MyMissingAttr]
+ static void Main() {}
+}
+
+The trace looks something like:
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object.
+ at Mono.CSharp.TypeManager.FindMembers(Type t, MemberTypes mt,
+BindingFlags bf, MemberFilter filter, Object criteria) in
+d:\mcs\mcs\typemanager.cs:line 702
+ at Mono.CSharp.TypeManager.MemberLookup(Type invocation_type, Type
+queried_type, MemberTypes mt, BindingFlags original_bf, String name) in
+d:\mcs\mcs\typemanager.cs:line 1520
+ at Mono.CSharp.Expression.MemberLookup(EmitContext ec, Type t, String
+name, MemberTypes mt, BindingFlags bf, Location loc) in
+d:\mcs\mcs\ecore.cs:line 376