Changeset 5257 in josm


Ignore:
Timestamp:
May 31, 2012 3:45:02 PM (12 months ago)
Author:
simon04
Message:

see #7701 - NPE in MapImage

File:
1 edited

Legend:

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

    r5183 r5257  
    6565                        synchronized (MapImage.this) { 
    6666                            if (result == null) { 
    67                                 img = (BufferedImage) MapPaintStyles.getNoIcon_Icon(source).getImage(); 
     67                                ImageIcon noIcon = MapPaintStyles.getNoIcon_Icon(source); 
     68                                img = noIcon == null ? null : (BufferedImage) noIcon.getImage(); 
    6869                            } else { 
    6970                                img = (BufferedImage) result.getImage(); 
Note: See TracChangeset for help on using the changeset viewer.