Browse Source

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

Fixes to avoid exception with the ComboBox in All Views Tester.
Charlie Kindel 4 years ago
parent
commit
608c58e405
1 changed files with 3 additions and 0 deletions
  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);