[MonoDevelop] NullReferenceException in Mono code when Debugging

Jeff Stedfast jeff at xamarin.com
Mon Feb 18 23:20:57 UTC 2013


Hi Guido,

This should be fixed in 4.0.1 (once 4.0 goes out). I've rewritten the
debugger's expression evaluator to use the newer NRefactory code instead of
OldNRefactory and in the process managed to fix some of these NRE's.

Thanks for bringing this to our attention, though!

Jeff

On Mon, Feb 18, 2013 at 4:01 PM, Guido Van Hoecke <guivho at gmail.com> wrote:

> Hi,
>
> I get repeating System.NullReferenceExceptions while debugging, and only
> when debugging (It's just a nuisance, but I thought it worthwhile
> mentioning):
>
> System.NullReferenceException: Object reference not set to an instance
> of an object
>
>   at
>
> Mono.Debugging.Evaluation.EvaluatorVisitor.EvaluateBinaryOperatorExpression
>   (Mono.Debugging.Evaluation.ValueReference left,
>   ICSharpCode.OldNRefactory.Ast.Expression rightExp, BinaryOperatorType
>   oper, System.Object data) [0x0015f] in
>
> /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1-series/5d928ec4/source/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryEvaluator.cs:801
>
>   at
>   Mono.Debugging.Evaluation.EvaluatorVisitor.VisitBinaryOperatorExpression
>   (ICSharpCode.OldNRefactory.Ast.BinaryOperatorExpression
>   binaryOperatorExpression, System.Object data) [0x00013] in
>
> /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1-series/5d928ec4/source/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryEvaluator.cs:658
>
>   at
>   ICSharpCode.OldNRefactory.Ast.BinaryOperatorExpression.AcceptVisitor
>   (IAstVisitor visitor, System.Object data) [0x00000] in
>
> /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1-series/5d928ec4/source/monodevelop/main/contrib/NRefactory/Project/Src/Ast/Generated.cs:455
>
>   at
>   Mono.Debugging.Evaluation.EvaluatorVisitor.VisitBinaryOperatorExpression
>   (ICSharpCode.OldNRefactory.Ast.BinaryOperatorExpression
>   binaryOperatorExpression, System.Object data) [0x00000] in
>
> /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1-series/5d928ec4/source/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryEvaluator.cs:657
>
>   at
>   ICSharpCode.OldNRefactory.Ast.BinaryOperatorExpression.AcceptVisitor
>   (IAstVisitor visitor, System.Object data) [0x00000] in
>
> /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1-series/5d928ec4/source/monodevelop/main/contrib/NRefactory/Project/Src/Ast/Generated.cs:455
>
>   at Mono.Debugging.Evaluation.NRefactoryEvaluator.Evaluate
>   (Mono.Debugging.Evaluation.EvaluationContext ctx, System.String exp,
>   System.Object expectedType, Boolean tryTypeOf) [0x00164] in
>
> /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1-series/5d928ec4/source/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryEvaluator.cs:90
>
>
> Guido
>
> --
> Invest in physics -- own a piece of Dirac!
>
> http://vanhoecke.org ... and go2 places!
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20130218/180d0c9b/attachment.html>


More information about the Monodevelop-list mailing list