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


Ignore:
Timestamp:
2012-05-31T12:04:31+02:00 (12 years ago)
Author:
simon04
Message:

fix #7709 - "Failed to locate image 'null'" after downloading a Map Paint Style

File:
1 edited

Legend:

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

    r5141 r5253  
    2424
    2525        public MapPaintAction(StyleSource style) {
    26             super(style.getDisplayString(), ImageProvider.getIfAvailable(style.icon),
     26            super(style.getDisplayString(), style.icon == null ? null : ImageProvider.getIfAvailable(style.icon),
    2727                    tr("Select the map painting styles"), null, true, "mappaint/" + style.getDisplayString(), true);
    2828            this.button = new StayOpenCheckBoxMenuItem(this);
Note: See TracChangeset for help on using the changeset viewer.