Bug 1539 - NRE in watch window
Summary: NRE in watch window
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: Trunk
Hardware: PC Linux
: High normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-10-17 17:39 UTC by Marek Safar
Modified: 2011-12-29 04:35 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Marek Safar 2011-10-17 17:39:42 UTC
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
Comment 1 Jeffrey Stedfast 2011-11-28 17:37:18 UTC
Is there a way to reproduce this?
Comment 2 Jeffrey Stedfast 2011-12-05 11:55:37 UTC
Do you have any idea what the expression in the watch window looked like?
Comment 3 Marek Safar 2011-12-05 12:57:24 UTC
It has been some time ago but from the stack trace I can see it was indexer expression
Comment 4 Jeffrey Stedfast 2011-12-08 14:39:39 UTC
I imagine that this trace indicates that targetType is null in SoftDebuggerAdaptor.GetIndexerReference()

No idea how that could happen though.
Comment 5 Jeffrey Stedfast 2011-12-08 15:48:07 UTC
I need a test case for this in order to fix it
Comment 6 Marek Safar 2011-12-08 18:43:47 UTC
Closing, will try to report it with full custom mono build next time ;-)
Comment 7 Jeffrey Stedfast 2011-12-08 19:32:40 UTC
Well, maybe Lluis could take a look and see something that a newb like me didn't see ;-)
Comment 8 Atin 2011-12-29 04:35:11 UTC
Please provide some necessary info or step to reproduce this bug.