Changeset 5557 in josm for trunk/src/org


Ignore:
Timestamp:
2012-11-03T20:15:49+01:00 (12 years ago)
Author:
Don-vip
Message:

fix #8147 - NPE in WMS grabber thread

File:
1 edited

Legend:

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

    r5513 r5557  
    600600            if (request.getState() != null && !request.isPrecacheOnly()) {
    601601                finishedRequests.add(request);
    602                 Main.map.mapView.repaint();
     602                if (Main.map != null && Main.map.mapView != null) {
     603                    Main.map.mapView.repaint();
     604                }
    603605            }
    604606        } finally {
Note: See TracChangeset for help on using the changeset viewer.