2
0
Эх сурвалжийг харах

Fixed AllViewsTester.cs crash

Ross Ferguson 5 жил өмнө
parent
commit
a869b9c6dd

+ 1 - 1
Terminal.Gui/Views/ComboBox.cs

@@ -338,7 +338,7 @@ namespace Terminal.Gui {
 		private int CalculatetHeight ()
 		private int CalculatetHeight ()
 		{
 		{
 			var h = (Height is Dim.DimAbsolute) ? height : Bounds.Height;
 			var h = (Height is Dim.DimAbsolute) ? height : Bounds.Height;
-			return Math.Min (Math.Max (0, h - 1), searchset.Count);
+			return Math.Min (Math.Max (0, h - 1), searchset?.Count ?? 0);
 		}
 		}
 	}
 	}
 }
 }