mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00: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
|
||||
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());
|
||||
fireEditingStopped();
|
||||
ActionEvent event = new ActionEvent(table, ActionEvent.ACTION_PERFORMED, "" + row);
|
||||
|
|
Loading…
Reference in a new issue