mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
range check in table model (PY-8448)
This commit is contained in:
@@ -114,7 +114,10 @@ public class ListWrappingTableModel extends AbstractTableModel {
|
||||
|
||||
@Override
|
||||
public void setValueAt(Object value, int rowIndex, int columnIndex) {
|
||||
list.get(columnIndex).set(rowIndex, String.valueOf(value));
|
||||
fireTableCellUpdated(rowIndex, columnIndex);
|
||||
List<String> strings = list.get(columnIndex);
|
||||
if (rowIndex >= 0 && rowIndex < strings.size()) {
|
||||
strings.set(rowIndex, String.valueOf(value));
|
||||
fireTableCellUpdated(rowIndex, columnIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user