Ticket #17534: crash.2.patch

File crash.2.patch, 647 bytes (added by taylor.smock, 5 years ago)

Actually fix the issue (remove listener when leaving the layer -- this may not be what the original author intended).

  • src/org/openstreetmap/josm/plugins/JunctionChecker/JunctionCheckerMapMode.java

     
    4848        super.exitMode();
    4949        MainApplication.getMap().mapView.removeMouseListener(this);
    5050        MainApplication.getMap().mapView.removeMouseMotionListener(this);
     51        MainApplication.getLayerManager().removeActiveLayerChangeListener(this);
    5152    }
    5253
    5354    @Override