Changeset 7270 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2014-06-25T20:31:13+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10197 - StringIndexOutOfBoundsException in validator panel (regression from r7266)

File:
1 edited

Legend:

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

    r7266 r7270  
    164164                } else if (userObject instanceof String) {
    165165                    String msg = (String) userObject;
    166                     msg = msg.substring(0, msg.lastIndexOf(" ("));
     166                    int index = msg.lastIndexOf(" (");
     167                    if (index > 0) {
     168                        msg = msg.substring(0, index);
     169                    }
    167170                    oldSelectedRows.add(msg);
    168171                }
Note: See TracChangeset for help on using the changeset viewer.