Changeset 23941 in osm for applications


Ignore:
Timestamp:
2010-10-31T00:47:44+02:00 (14 years ago)
Author:
oliverw
Message:

Bugfix: Index out of bounds ex occurred in some cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/AddressEditSelectionEvent.java

    r23933 r23941  
    9898                        List<AddressNode> nodes = new ArrayList<AddressNode>();
    9999                        for (int i = 0; i < selRows.length; i++) {
    100                                 if (i >= 0 && i < addressContainer.getNumberOfUnresolvedAddresses()) {
     100                                if (selRows[i] >= 0 && selRows[i] < addressContainer.getNumberOfUnresolvedAddresses()) {
    101101                                        nodes.add(addressContainer.getUnresolvedAddresses().get(selRows[i]));
    102102                                }
Note: See TracChangeset for help on using the changeset viewer.