[#1813] Build in extra safety-check on taking the spotlight
This commit is contained in:
parent
79a2b32d63
commit
1fb69f3a1f
@ -1009,6 +1009,9 @@ public class SimulationPanel extends JPanel {
|
|||||||
} else {
|
} else {
|
||||||
simulationTable.clearSelection();
|
simulationTable.clearSelection();
|
||||||
for (int row : previousSelection) {
|
for (int row : previousSelection) {
|
||||||
|
if (row < 0 || row >= simulationTable.getRowCount()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
simulationTable.addRowSelectionInterval(row, row);
|
simulationTable.addRowSelectionInterval(row, row);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user