Changeset 12471 in josm


Ignore:
Timestamp:
2017-07-13T21:28:20+02:00 (13 days ago)
Author:
Don-vip
Message:

fix #15016 - NPE

File:
1 edited

Legend:

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

    r12433 r12471  
    4747import org.openstreetmap.josm.gui.NavigatableComponent;
    4848import org.openstreetmap.josm.gui.NavigatableComponent.ZoomChangeListener;
     49import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    4950import org.openstreetmap.josm.gui.mappaint.mapcss.Selector;
    5051import org.openstreetmap.josm.gui.widgets.OSDLabel;
     
    354355            model.executeFilters();
    355356            if (model.isChanged()) {
    356                 Main.getLayerManager().getEditLayer().invalidate();
     357                OsmDataLayer editLayer = Main.getLayerManager().getEditLayer();
     358                if (editLayer != null) {
     359                    editLayer.invalidate();
     360                }
    357361            }
    358362        }
Note: See TracChangeset for help on using the changeset viewer.