mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Merge pull request #2001 from draxdyn/fix_oobe
Fix ArrayIndexOutOfBoundsException in ButtonColumn.actionPerformed
This commit is contained in:
commit
84989973ed
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ public class ButtonColumn extends AbstractCellEditor implements TableCellRendere
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
if (table.getRowCount() > 0 && table.getRowCount() >= table.getEditingRow()) {
|
if (table.getRowCount() > 0 && table.getRowCount() >= table.getEditingRow() && table.getEditingRow() >= 0) {
|
||||||
int row = table.convertRowIndexToModel(table.getEditingRow());
|
int row = table.convertRowIndexToModel(table.getEditingRow());
|
||||||
fireEditingStopped();
|
fireEditingStopped();
|
||||||
ActionEvent event = new ActionEvent(table, ActionEvent.ACTION_PERFORMED, "" + row);
|
ActionEvent event = new ActionEvent(table, ActionEvent.ACTION_PERFORMED, "" + row);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue