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


Ignore:
Timestamp:
2013-10-25T17:20:49+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #9226 - console spammed with "java.lang.NumberFormatException" warnings with "lane and road attributes" style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/Cascade.java

    r6310 r6322  
    121121        if (o instanceof Integer)
    122122            return new Float((Integer) o);
    123         if (o instanceof String) {
     123        if (o instanceof String && !((String) o).isEmpty()) {
    124124            try {
    125                 float f = Float.parseFloat((String) o);
    126                 return f;
     125                return Float.parseFloat((String) o);
    127126            } catch (NumberFormatException e) {
    128                 Main.warn(e);
     127                Main.debug("'"+o+"' cannot be converted to float");
    129128            }
    130129        }
Note: See TracChangeset for help on using the changeset viewer.