Changeset 4638 in josm for trunk


Ignore:
Timestamp:
2011-12-05T17:54:30+01:00 (12 years ago)
Author:
bastiK
Message:

fixed #7117 - ClassCastException in tagging presets setup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/MirroredInputStream.java

    r4612 r4638  
    154154            {
    155155                String prefKey = getPrefKey(url, destDir);
    156                 Collection<String> localPath = Main.pref.getCollection(prefKey);
    157                 if(localPath.size() == 2) {
    158                     String[] lp = (String[]) localPath.toArray();
    159                     File lfile = new File(lp[1]);
     156                List<String> localPath = new ArrayList<String>(Main.pref.getCollection(prefKey));
     157                if (localPath.size() == 2) {
     158                    File lfile = new File(localPath.get(1));
    160159                    if(lfile.exists()) {
    161160                        lfile.delete();
Note: See TracChangeset for help on using the changeset viewer.