Changeset 7329 in josm for trunk/src/org


Ignore:
Timestamp:
2014-07-24T10:10:15+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10304 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/TMSLayer.java

    r7033 r7329  
    166166        tile.setLoaded(true);
    167167        needRedraw = true;
    168         Main.map.repaint(100);
     168        if (Main.map != null) {
     169            Main.map.repaint(100);
     170        }
    169171        tileRequestsOutstanding.remove(tile);
    170172        if (Main.isDebugEnabled()) {
Note: See TracChangeset for help on using the changeset viewer.