Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
System.NullReferenceException: Object reference not set to an instance of an object
at Mono.Debugging.Soft.SoftDebuggerAdaptor.GetIndexerReference (Mono.Debugging.Evaluation.EvaluationContext ctx, System.Object target, System.Object indices) [0x000e0] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs:247
at Mono.Debugging.Evaluation.EvaluatorVisitor.VisitIndexerExpression (ICSharpCode.OldNRefactory.Ast.IndexerExpression indexerExpression, System.Object data) [0x00102] in /home/marek/git/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryEvaluator.cs:513
at ICSharpCode.OldNRefactory.Ast.IndexerExpression.AcceptVisitor (IAstVisitor visitor, System.Object data) [0x00000] in /home/marek/git/monodevelop/main/contrib/NRefactory/Project/Src/Ast/Generated.cs:2556
at Mono.Debugging.Evaluation.EvaluatorVisitor.VisitMemberReferenceExpression (ICSharpCode.OldNRefactory.Ast.MemberReferenceExpression memberReferenceExpression, System.Object data) [0x00000] in /home/marek/git/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryEvaluator.cs:594
at ICSharpCode.OldNRefactory.Ast.MemberReferenceExpression.AcceptVisitor (IAstVisitor visitor, System.Object data) [0x00000] in /home/marek/git/monodevelop/main/contrib/NRefactory/Project/Src/Ast/Generated.cs:2840
at Mono.Debugging.Evaluation.NRefactoryEvaluator.Evaluate (Mono.Debugging.Evaluation.EvaluationContext ctx, System.String exp, System.Object expectedType, Boolean tryTypeOf) [0x00164] in /home/marek/git/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryEvaluator.cs:89 aaaa
Is there a way to reproduce this?
Do you have any idea what the expression in the watch window looked like?
It has been some time ago but from the stack trace I can see it was indexer expression
I imagine that this trace indicates that targetType is null in SoftDebuggerAdaptor.GetIndexerReference()
No idea how that could happen though.
I need a test case for this in order to fix it
Closing, will try to report it with full custom mono build next time ;-)
Well, maybe Lluis could take a look and see something that a newb like me didn't see ;-)
Please provide some necessary info or step to reproduce this bug.