Changeset 5074 in josm


Ignore:
Timestamp:
Mar 12, 2012 7:54:24 AM (15 months 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.