From f249e3f083688b3f490eca5f7ddc920e1f5ecb46 Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Sun, 1 Aug 2010 19:24:58 +0000 Subject: [PATCH] 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 --- .../Src/Editor/CodeCompletion/NRefactoryInsightWindowHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main/Base/Project/Src/Editor/CodeCompletion/NRefactoryInsightWindowHandler.cs b/src/Main/Base/Project/Src/Editor/CodeCompletion/NRefactoryInsightWindowHandler.cs index 26b6dfd757..7e35bfb831 100644 --- a/src/Main/Base/Project/Src/Editor/CodeCompletion/NRefactoryInsightWindowHandler.cs +++ b/src/Main/Base/Project/Src/Editor/CodeCompletion/NRefactoryInsightWindowHandler.cs @@ -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"); }