Bug 7691 - NRE when completing function parameter list
Summary: NRE when completing function parameter list
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: Macintosh Mac OS
: High normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-10-05 13:25 UTC by Frank A. Krueger
Modified: 2012-10-08 03:13 UTC (History)
1 user (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 FIXED

Description Frank A. Krueger 2012-10-05 13:25:39 UTC
I receive the following error from time to time. The code I was writing was:

"if (!derivedTypes.TryGetValue (name,|))"

The | marks the cursor when the error occurred. "derivedTypes" is a Dictionary<string, List<ComponentType>>

System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.CSharp.SignatureMarkupCreator.GetTypeReferenceString (IType type, Boolean highlight) [0x00024] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/SignatureMarkupCreator.cs:89 
  at MonoDevelop.CSharp.SignatureMarkupCreator.AppendParameter (System.Text.StringBuilder result, IParameter parameter) [0x00077] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/SignatureMarkupCreator.cs:1084 
  at MonoDevelop.CSharp.SignatureMarkupCreator.AppendParameterList (System.Text.StringBuilder result, IList`1 parameterList, Boolean spaceBefore, Boolean spaceAfter, Boolean newLine) [0x0008a] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/SignatureMarkupCreator.cs:1044 
  at MonoDevelop.CSharp.SignatureMarkupCreator.GetMethodMarkup (IMethod method) [0x001fb] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/SignatureMarkupCreator.cs:543 
  at MonoDevelop.CSharp.SignatureMarkupCreator.GetMarkup (IEntity entity) [0x00091] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/SignatureMarkupCreator.cs:127 
  at MonoDevelop.CSharp.Completion.MethodParameterDataProvider.CreateTooltipInformation (ICompilation compilation, ICSharpCode.NRefactory.CSharp.TypeSystem.CSharpUnresolvedFile file, Mono.TextEditor.TextEditorData textEditorData, MonoDevelop.CSharp.Formatting.CSharpFormattingPolicy formattingPolicy, IParameterizedMember entity, Int32 currentParameter, Boolean smartWrap) [0x0003b] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/MethodParameterDataProvider.cs:122 
  at MonoDevelop.CSharp.Completion.MethodParameterDataProvider.CreateTooltipInformation (MonoDevelop.CSharp.Completion.CSharpCompletionTextEditorExtension ext, IParameterizedMember entity, Int32 currentParameter, Boolean smartWrap) [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/MethodParameterDataProvider.cs:112 
  at MonoDevelop.CSharp.Completion.MethodParameterDataProvider.CreateTooltipInformation (Int32 overload, Int32 currentParameter, Boolean smartWrap) [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/MethodParameterDataProvider.cs:107 
  at MonoDevelop.Ide.CodeCompletion.ParameterInformationWindow.ShowParameterInfo (MonoDevelop.Ide.CodeCompletion.ParameterDataProvider provider, Int32 overload, Int32 _currentParam, Int32 maxSize) [0x00053] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/ParameterInformationWindow.cs:119 
  at MonoDevelop.Ide.CodeCompletion.ParameterInformationWindowManager.UpdateWindow (MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension textEditorExtension, ICompletionWidget completionWidget) [0x00119] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/ParameterInformationWindowManager.cs:231 
  at MonoDevelop.Ide.CodeCompletion.CompletionWindowManager.HideWindow () [0x0000b] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionWindowManager.cs:163 
  at MonoDevelop.Ide.CodeCompletion.CompletionListWindow.PostProcessKeyEvent (Key key, Char keyChar, ModifierType modifier) [0x00082] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionListWindow.cs:138 
  at MonoDevelop.Ide.CodeCompletion.CompletionWindowManager.PostProcessKeyEvent (Key key, Char keyChar, ModifierType modifier) [0x0000b] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionWindowManager.cs:156 
  at MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00060] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs:97 
  at MonoDevelop.CSharp.Completion.CSharpCompletionTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs:178 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.CSharp.Formatting.CSharpTextEditorIndentation.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x004a8] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Formatting/CSharpTextEditorIndentation.cs:330 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.SourceEditor.ExtensibleTextEditor.ExtensionKeyPress (Key key, UInt32 ch, ModifierType state) [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/fede9efb/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:242
Comment 1 Mike Krüger 2012-10-08 03:13:18 UTC
already fixed