gQSPSim / gQSPSim_public

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

clicking within simulations item table in simulations editor when the table is empty produces an error #11

Closed feigelman closed 1 year ago

feigelman commented 1 year ago

clicked the table with no rows and get the following

Index exceeds the number of array elements. Index must not exceed 0.

Error in QSPViewerNew.Application.SimulationPane/onTableSelectionChange (line 418) obj.SelectedRow = Indices(1);

Error in QSPViewerNew.Application.SimulationPane>@(h,e)obj.onTableSelectionChange(e) (line 270) obj.SimItemsTable.CellSelectionCallback = @(h,e) obj.onTableSelectionChange(e);

418 obj.SelectedRow = Indices(1);

simkaryote commented 1 year ago

This was a latent bug in the code before the refactor.