mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 01:38:01 +01:00
Avoids throw if table is null.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user