Changeset 5728 in josm


Ignore:
Timestamp:
2013-02-19T01:53:38+01:00 (12 years ago)
Author:
Don-vip
Message:

fix #8435 - NPE in Relation list dialog (based on patch of Lesath)

File:
1 edited

Legend:

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

    r5725 r5728  
    917917            }
    918918            for (Relation r: sel) {
    919                 int i = getVisibleRelationIndex(r);
    920                 if (i<0) {
    921                     continue;
    922                 }
    923                 selectionModel.addSelectionInterval(i,i);
     919                Integer i = getVisibleRelationIndex(r);
     920                if (i != null) {
     921                    selectionModel.addSelectionInterval(i,i);
     922                }
    924923            }
    925924        }
Note: See TracChangeset for help on using the changeset viewer.