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


Ignore:
Timestamp:
2018-02-18T14:18:33+01:00 (22 months ago)
Author:
Don-vip
Message:

fix #15958 - robustness when loading map paint styles

File:
1 edited

Legend:

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

    r12967 r13436  
    305305
    306306        for (SourceEntry entry : sourceEntries) {
    307             styles.add(fromSourceEntry(entry));
     307            try {
     308                styles.add(fromSourceEntry(entry));
     309            } catch (IllegalArgumentException e) {
     310                Logging.error("Failed to load map paint style {0}", entry);
     311                Logging.error(e);
     312            }
    308313        }
    309314        for (StyleSource source : styles.getStyleSources()) {
Note: See TracChangeset for help on using the changeset viewer.