Changeset 14291 in josm


Ignore:
Timestamp:
2018-10-03T20:52:15+02:00 (9 months ago)
Author:
Don-vip
Message:

see #16798 - be robust to svgSalamander errors when initializing JOSM actions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/JosmAction.java

    r14273 r14291  
    8585            ImageResource resource = icon.getResource();
    8686            if (resource != null) {
    87                 resource.attachImageIcon(this, true);
     87                try {
     88                    resource.attachImageIcon(this, true);
     89                } catch (RuntimeException e) {
     90                    Logging.warn("Unable to attach image icon {0} for action {1}", icon, name);
     91                    Logging.error(e);
     92                }
    8893            }
    8994        }
Note: See TracChangeset for help on using the changeset viewer.