From d796c5ac434f1cd812b4fa068c62f78deb49a281 Mon Sep 17 00:00:00 2001 From: BDisp Date: Fri, 22 Mar 2024 23:49:58 +0000 Subject: [PATCH] Avoids throw if table is null. --- Terminal.Gui/Views/TableView/TableView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Terminal.Gui/Views/TableView/TableView.cs b/Terminal.Gui/Views/TableView/TableView.cs index 352547168..34d3bfbe8 100644 --- a/Terminal.Gui/Views/TableView/TableView.cs +++ b/Terminal.Gui/Views/TableView/TableView.cs @@ -2119,7 +2119,7 @@ public class TableView : View ) { // if the column index provided is out of bounds - if (columnIndex < 0 || columnIndex >= table.Columns) + if (table is null || columnIndex < 0 || columnIndex >= table.Columns) { idx = columnIndex;