Changeset 4582 in josm


Ignore:
Timestamp:
2011-11-06T17:28:37+01:00 (10 years ago)
Author:
Don-vip
Message:

fix NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/Main.java

    r4567 r4582  
    216216        if (map != null) {
    217217            map.mapView.removeLayer(layer);
    218             if (map.mapView.getAllLayers().isEmpty()) {
     218            if (map != null && map.mapView.getAllLayers().isEmpty()) {
    219219                setMapFrame(null);
    220220            }
Note: See TracChangeset for help on using the changeset viewer.