Changeset 1279 in josm for trunk


Ignore:
Timestamp:
2009-01-17T15:18:27+01:00 (16 years ago)
Author:
ulfl
Message:

if this isn't a file we're reading from (download from server), ignore a ClassCastException

File:
1 edited

Legend:

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

    r1278 r1279  
    153153                            double perc = (((double)channel.position()) / ((double)channel.size()) * 100.0);
    154154                            System.out.format(" " + (int)perc + "%%");
     155                        }
     156                        catch(java.lang.ClassCastException cce) {
    155157                        }
    156158                        catch(IOException e) {
Note: See TracChangeset for help on using the changeset viewer.