Changeset 2653 in josm for trunk/src


Ignore:
Timestamp:
2009-12-18T20:10:06+01:00 (15 years ago)
Author:
jttt
Message:

Fixed #4198 NPE on last layer delete

File:
1 edited

Legend:

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

    r2652 r2653  
    623623     */
    624624    public void setActiveLayer(Layer layer) {
    625         if (!layers.contains(layer))
     625        if (layer != null && !layers.contains(layer))
    626626            throw new IllegalArgumentException(tr("Layer ''{0}'' must be in list of layers", layer.toString()));
    627627
Note: See TracChangeset for help on using the changeset viewer.