Browse Source

Fixed null reference exception when typing a comma to add a new parameter to an existing class method.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6361 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head 4.0-Beta2
Matt Ward 15 years ago
parent
commit
f249e3f083
  1. 2
      src/Main/Base/Project/Src/Editor/CodeCompletion/NRefactoryInsightWindowHandler.cs

2
src/Main/Base/Project/Src/Editor/CodeCompletion/NRefactoryInsightWindowHandler.cs

@ -172,7 +172,7 @@ namespace ICSharpCode.SharpDevelop.Editor.CodeCompletion @@ -172,7 +172,7 @@ namespace ICSharpCode.SharpDevelop.Editor.CodeCompletion
var insightProvider = new MethodInsightProvider { LookupOffset = offset };
var insightItems = insightProvider.ProvideInsight(editor);
insightWindow = ShowInsight(editor, insightItems, ResolveCallParameters(editor, call), ch);
return true;
return insightWindow != null;
} else {
Core.LoggingService.Warn("Expected '(' or '[' at start position");
}

Loading…
Cancel
Save