Changeset 10642 in josm for trunk


Ignore:
Timestamp:
2016-07-26T00:28:24+02:00 (4 years ago)
Author:
Don-vip
Message:

fix #13184 - NPE while trying to exit JOSM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ImageResource.java

    r10464 r10642  
    198198            //Use default Swing functionality to make icon look disabled by applying grayscaling filter.
    199199            Icon disabledIcon = UIManager.getLookAndFeel().getDisabledIcon(null, new ImageIcon(bimg));
     200            if (disabledIcon == null) {
     201                return null;
     202            }
    200203
    201204            //Convert Icon to ImageIcon with BufferedImage inside
Note: See TracChangeset for help on using the changeset viewer.