[Mono-bugs] [Bug 80479][Nor] New - NullReferenceException when compiling

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jan 8 18:29:59 EST 2007


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 knocte at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80479

--- shadow/80479	2007-01-08 18:29:59.000000000 -0500
+++ shadow/80479.tmp.31577	2007-01-08 18:29:59.000000000 -0500
@@ -0,0 +1,85 @@
+Bug#: 80479
+Product: Mono: Compilers
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: knocte at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: NullReferenceException when compiling
+
+I have just obtained this exception when trying to compile a relatively
+small project:
+
+Building Project: AntDownloader Configuration: Debug
+Performing main compilation...
+Exception caught by the compiler while compiling:
+   Block that caused the problem begin at:
+/home/knocte/Documents/iDocuments/Proyectos/AntDownloader/Range.cs(27,23):
+                     Block being compiled: [Internal(1,1):,Internal(1,1):]
+System.NullReferenceException: Object reference not set to an instance of
+an object
+
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags) [0x00000] 
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Convert.ImplicitConversionStandard
+(Mono.CSharp.EmitContext ec, Mono.CSharp.Expression expr, System.Type
+target_type, Location loc) [0x00000] 
+  at Mono.CSharp.Convert.ExplicitConversionStandard
+(Mono.CSharp.EmitContext ec, Mono.CSharp.Expression expr, System.Type
+target_type, Location l) [0x00000] 
+  at Mono.CSharp.Convert.UserDefinedConversion (Mono.CSharp.EmitContext ec,
+Mono.CSharp.Expression source, System.Type target, Location loc, Boolean
+look_for_explicit) [0x00000] 
+  at Mono.CSharp.Expression.Error_ValueCannotBeConverted (Location loc,
+System.Type target, Boolean expl) [0x00000] 
+  at Mono.CSharp.Convert.ImplicitConversionRequired
+(Mono.CSharp.EmitContext ec, Mono.CSharp.Expression source, System.Type
+target_type, Location loc) [0x00000] 
+  at Mono.CSharp.Assign.DoResolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags) [0x00000] 
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.ExpressionStatement.ResolveStatement
+(Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.StatementExpression.Resolve (Mono.CSharp.EmitContext ec)
+[0x00000] 
+  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.EmitContext.ResolveTopBlock (Mono.CSharp.EmitContext
+anonymous_method_host, Mono.CSharp.ToplevelBlock block,
+Mono.CSharp.Parameters ip, IMethodData md, System.Boolean& unreachable)
+[0x00000] 
+
+
+Build complete -- 4 errors, 0 warnings
+
+---------------------- Done ----------------------
+
+Build: 4 errors, 0 warnings
+
+
+I am going to attach the project. Hopefully I will have time soon to
+convert it into a smaller testcase.
+
+(Using the latest version of Mono for OpenSUSE10.2:)
+Mono JIT compiler version 1.2.2.1, (C) 2002-2006 Novell, Inc and
+Contributors. www.mono-project.com
+        TLS:           normal
+        GC:            Included Boehm (with typed GC)
+        SIGSEGV:       normal
+        Disabled:      none


More information about the mono-bugs mailing list