Avoids throw if table is null.

This commit is contained in:
BDisp
2024-03-22 23:49:58 +00:00
parent 58d25fccf8
commit d796c5ac43

View File

@@ -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;