浏览代码

Merge pull request #1370 from BDisp/combobox-all-views-tester

Fixes to avoid exception with the ComboBox in All Views Tester.
Charlie Kindel 4 年之前
父节点
当前提交
608c58e405
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Terminal.Gui/Views/ComboBox.cs

+ 3 - 0
Terminal.Gui/Views/ComboBox.cs

@@ -450,6 +450,9 @@ namespace Terminal.Gui {
 
 		private void SetSearchSet ()
 		{
+			if (searchset == null) {
+				searchset = new List<object> ();
+			}
 			// force deep copy
 			foreach (var item in Source.ToList ()) {
 				searchset.Add (item);