Changeset 5074 in josm for trunk


Ignore:
Timestamp:
2012-03-12T07:54:24+01:00 (8 years ago)
Author:
akks
Message:

Fix NPE for disabled image loading, see #7498, #7491 (please check!)

File:
1 edited

Legend:

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

    r5054 r5074  
    2020public class MapImage {
    2121    /**
    22      * ImageIcon can chage while the image is loading.
     22     * ImageIcon can change while the image is loading.
    2323     */
    2424    private BufferedImage img;
     
    4444        if (disabledImg != null)
    4545            return disabledImg;
     46        if (img == null)
     47            getImage(); // fix #7498 ?
    4648        return disabledImg = GrayFilter.createDisabledImage(img);
    4749    }
Note: See TracChangeset for help on using the changeset viewer.