Changeset 6278 in josm


Ignore:
Timestamp:
2013-10-01T01:17:39+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #9121 - IndexOutOfBoundsException in Filter dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/FilterTableModel.java

    r6084 r6278  
    4646    public int disabledAndHiddenCount;
    4747
     48    /**
     49     * Constructs a new {@code FilterTableModel}.
     50     */
    4851    public FilterTableModel() {
    4952        loadPrefs();
     
    280283    @Override
    281284    public void setValueAt(Object aValue, int row, int column) {
     285        if (row >= filters.size()) {
     286            return;
     287        }
    282288        Filter f = filters.get(row);
    283289        switch (column) {
     
    310316    @Override
    311317    public Object getValueAt(int row, int column) {
     318        if (row >= filters.size()) {
     319            return null;
     320        }
    312321        Filter f = filters.get(row);
    313322        switch (column) {
Note: See TracChangeset for help on using the changeset viewer.