From d172f3f186534ba6ff10b3b3a50fb90160e3d75e Mon Sep 17 00:00:00 2001 From: BDisp Date: Thu, 15 Jul 2021 19:10:40 +0100 Subject: [PATCH] Fixes to avoid exception with the ComboBox in All Views Tester. --- Terminal.Gui/Views/ComboBox.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Terminal.Gui/Views/ComboBox.cs b/Terminal.Gui/Views/ComboBox.cs index b5da7cf96..122eeaa62 100644 --- a/Terminal.Gui/Views/ComboBox.cs +++ b/Terminal.Gui/Views/ComboBox.cs @@ -450,6 +450,9 @@ namespace Terminal.Gui { private void SetSearchSet () { + if (searchset == null) { + searchset = new List (); + } // force deep copy foreach (var item in Source.ToList ()) { searchset.Add (item);