[Mono-bugs] [Bug 74060][Wis] New - NullReferenceException: Object reference not set to an instance of an object
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 24 Mar 2005 09:06:25 -0500 (EST)
NullReferenceException in Mono.CSharp.MemberAccess:ResolveMemberAccess
In-Reply-To: <bug-74060@chernobyl.ximian.com>
X-Bugzilla-Product: Mono: Compilers
X-Bugzilla-Component: C#
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: Wishlist
X-Bugzilla-Severity:
X-Bugzilla-Target-Milestone: ---
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 m_kretzschmar@gmx.net.
http://bugzilla.ximian.com/show_bug.cgi?id=74060
--- shadow/74060 2005-03-24 09:06:25.000000000 -0500
+++ shadow/74060.tmp.12093 2005-03-24 09:06:25.000000000 -0500
@@ -0,0 +1,81 @@
+Bug#: 74060
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: m_kretzschmar@gmx.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: NullReferenceException: Object reference not set to an instance of an object
+NullReferenceException in Mono.CSharp.MemberAccess:ResolveMemberAccess
+
+Using mono 1.1.5, self-compiled
+
+This command:
+
+mcs test.cs /r:cli_types.dll /r:cli_basetypes.dll
+
+where test.cs is this program:
+
+public class Foo
+{
+ public static void Main()
+ {
+ unoidl.com.sun.star.sheet.DataPilotFieldOrientation dpfo =
+ unoidl.com.sun.star.sheet.DataPilotFieldOrientation.HIDDEN;
+ }
+}
+
+causes this exception:
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+in <0x004cb> Mono.CSharp.MemberAccess:ResolveMemberAccess
+(Mono.CSharp.EmitContext ec, Mono.CSharp.Expression member_lookup,
+Mono.CSharp.Expression left, Location loc, Mono.CSharp.Expression
+left_original)
+in <0x0056b> Mono.CSharp.MemberAccess:DoResolve (Mono.CSharp.EmitContext
+ec, Mono.CSharp.Expression right_side, ResolveFlags flags)
+in <0x00014> Mono.CSharp.MemberAccess:DoResolve (Mono.CSharp.EmitContext ec)
+in <0x000d4> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags)
+in <0x00012> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec)
+in <0x000d2> Mono.CSharp.Assign:DoResolve (Mono.CSharp.EmitContext ec)
+in <0x000d4> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags)
+in <0x00012> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec)
+in <0x00016> Mono.CSharp.ExpressionStatement:ResolveStatement
+(Mono.CSharp.EmitContext ec)
+in <0x0001f> Mono.CSharp.StatementExpression:Resolve
+(Mono.CSharp.EmitContext ec)
+in <0x00191> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
+in <0x00101> Mono.CSharp.EmitContext:ResolveTopBlock
+(Mono.CSharp.EmitContext anonymous_method_host, Mono.CSharp.ToplevelBlock
+block, Mono.CSharp.InternalParameters ip, Location loc, System.Boolean
+unreachable)
+in <0x00030> Mono.CSharp.EmitContext:EmitTopBlock
+(Mono.CSharp.ToplevelBlock block, Mono.CSharp.InternalParameters ip,
+Location loc)
+in <0x00378> Mono.CSharp.MethodData:Emit (Mono.CSharp.TypeContainer
+container, Mono.CSharp.Attributable kind)
+in <0x00022> Mono.CSharp.Method:Emit ()
+in <0x0057a> Mono.CSharp.TypeContainer:EmitType ()
+in <0x00206> Mono.CSharp.RootContext:EmitCode ()
+in <0x00be4> Mono.CSharp.Driver:MainDriver (System.String[] args)
+in <0x0000f> Mono.CSharp.Driver:Main (System.String[] args)
+
+http://www.gnome.org/~martink/2005/stuff/cli_types.dll
+http://www.gnome.org/~martink/2005/stuff/cli_basetypes.dll
+
+cli_basetypes was compiled by mcs, cli_types was generated using
+Reflection.Emit on Windows (using a program whose sources are here:
+http://go-oo.org/bonsai/rview.cgi?cvsroot=/var/cvsup&dir=udk/cli_ure/source/climaker&module=OpenOffice
+)