Changeset 4568 in josm


Ignore:
Timestamp:
2011-11-03T09:08:21+01:00 (13 years ago)
Author:
stoecker
Message:

fix NPE

File:
1 edited

Legend:

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

    r4567 r4568  
    490490            if (newMapMode != null) {
    491491                selectMapMode(newMapMode, newLayer); // it would be nice to select first supported mode when layer is first selected, but it don't work well with for example editgpx layer
    492             } else {
     492            } else if (mapMode != null) {
    493493                mapMode.exitMode(); // if new mode is null - simply exit from previous mode
    494494            }
Note: See TracChangeset for help on using the changeset viewer.