Ticket #17534: crash.patch
File crash.patch, 901 bytes (added by , 6 years ago) |
---|
-
src/org/openstreetmap/josm/plugins/JunctionChecker/JunctionCheckerMapMode.java
41 41 super.enterMode(); 42 42 MainApplication.getMap().mapView.addMouseListener(this); 43 43 MainApplication.getMap().mapView.addMouseMotionListener(this); 44 MainApplication.getLayerManager().addActiveLayerChangeListener(this); 44 try { 45 MainApplication.getLayerManager().addActiveLayerChangeListener(this); 46 } catch (IllegalArgumentException e) { 47 // This will (hopefully) only occur when this has already been added... 48 } 45 49 } 46 50 47 51 @Override public void exitMode() {