Skip to content

Commit

Permalink
fix #20958 - NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
don-vip committed Aug 25, 2021
1 parent beda470 commit f78b8a3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ private static Bounds intersection(Bounds box1, Bounds box2) {

private static Collection<Bounds> getExisting(Class<?> klass) {
if (klass.isAssignableFrom(OsmDataLayer.class)) {
if (!MainApplication.isDisplayingMapView())
return null;
OsmDataLayer layer = MainApplication.getMap().mapView.getLayerManager().getEditLayer();
if (layer == null) {
Collection<Layer> layers = MainApplication.getMap().mapView.getLayerManager().getLayers();
Expand Down

0 comments on commit f78b8a3

Please sign in to comment.