Changeset 5257 in josm for trunk


Ignore:
Timestamp:
2012-05-31T15:45:02+02:00 (7 years 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.