Index: applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/ChannelDiGraphLayer.java
===================================================================
--- applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/ChannelDiGraphLayer.java	(revision 33247)
+++ applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/ChannelDiGraphLayer.java	(revision 33248)
@@ -12,6 +12,4 @@
 import java.awt.geom.AffineTransform;
 import java.awt.geom.Line2D;
-import java.beans.PropertyChangeEvent;
-import java.beans.PropertyChangeListener;
 
 import javax.swing.Action;
@@ -24,8 +22,4 @@
 import org.openstreetmap.josm.gui.MapView;
 import org.openstreetmap.josm.gui.layer.Layer;
-import org.openstreetmap.josm.gui.layer.LayerManager.LayerAddEvent;
-import org.openstreetmap.josm.gui.layer.LayerManager.LayerChangeListener;
-import org.openstreetmap.josm.gui.layer.LayerManager.LayerOrderChangeEvent;
-import org.openstreetmap.josm.gui.layer.LayerManager.LayerRemoveEvent;
 import org.openstreetmap.josm.plugins.JunctionChecker.datastructure.Channel;
 import org.openstreetmap.josm.plugins.JunctionChecker.datastructure.ChannelDiGraph;
@@ -38,5 +32,5 @@
  *
  */
-public class ChannelDiGraphLayer extends Layer implements LayerChangeListener, PropertyChangeListener {
+public class ChannelDiGraphLayer extends Layer {
 
     private ChannelDiGraph digraph;
@@ -65,5 +59,4 @@
     public ChannelDiGraphLayer(ColorSchemeXMLReader cXMLReader) {
         super("ChannelDiGraphLayer");
-        Main.getLayerManager().addLayerChangeListener(this);
         this.cXMLReader = cXMLReader;
         initColors();
@@ -187,19 +180,4 @@
     }
 
-    @Override
-    public void layerOrderChanged(LayerOrderChangeEvent e) {
-    }
-
-    @Override
-    public void layerAdded(LayerAddEvent e) {
-    }
-
-    @Override
-    public void layerRemoving(LayerRemoveEvent e) {
-        if (e.getRemovedLayer() == this) {
-            Main.getLayerManager().removeLayerChangeListener(this);
-        }
-    }
-
     public ChannelDiGraph getDigraph() {
         return digraph;
@@ -209,7 +187,3 @@
         this.digraph = digraph;
     }
-
-    @Override
-    public void propertyChange(PropertyChangeEvent evt) {
-    }
 }
Index: applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/DigraphCreationTask.java
===================================================================
--- applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/DigraphCreationTask.java	(revision 33247)
+++ applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/DigraphCreationTask.java	(revision 33248)
@@ -56,6 +56,12 @@
     protected void finish() {
         if (canceled) {
-            Main.getLayerManager().removeLayer(plugin.getChannelDigraphLayer());
-            return;
+            removeDigraphLayer();
+        }
+    }
+
+    private void removeDigraphLayer() {
+        ChannelDiGraphLayer layer = plugin.getChannelDigraphLayer();
+        if (Main.getLayerManager().containsLayer(layer)) {
+            Main.getLayerManager().removeLayer(layer);
         }
     }
@@ -70,5 +76,5 @@
             return;
         }
-        Main.getLayerManager().removeLayer(plugin.getChannelDigraphLayer());
+        removeDigraphLayer();
         int tickscounter = 4;
         if (sealGraph) {
Index: applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/JunctionCheckTask.java
===================================================================
--- applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/JunctionCheckTask.java	(revision 33247)
+++ applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/JunctionCheckTask.java	(revision 33248)
@@ -55,5 +55,5 @@
             showjunction();
             JOptionPane.showMessageDialog(Main.parent,
-                    tr("The marked channels contains a junctioncandidate (white). To test this candidat mark these channel and press the \"Check\" button again."));
+                tr("The marked channels contains a junctioncandidate (white). To test this candidat mark these channel and press the \"Check\" button again."));
         } else if (jc.getCheck()) {
             showjunction();
