Procházet zdrojové kódy

Avoids throw if table is null.

BDisp před 1 rokem
rodič
revize
d796c5ac43
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Terminal.Gui/Views/TableView/TableView.cs

+ 1 - 1
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;