We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f69aee2 commit 7814eefCopy full SHA for 7814eef
1 file changed
ICSharpCode.AvalonEdit/CodeCompletion/CompletionList.cs
@@ -199,7 +199,8 @@ public ICompletionData SelectedItem {
199
set {
200
if (listBox == null && value != null)
201
ApplyTemplate();
202
- listBox.SelectedItem = value;
+ if (listBox != null) // may still be null if ApplyTemplate fails, or if listBox and value both are null
203
+ listBox.SelectedItem = value;
204
}
205
206
0 commit comments