Index: applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/JoinAreasAction.java
===================================================================
--- applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/JoinAreasAction.java	(revision 16734)
+++ applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/JoinAreasAction.java	(revision 16735)
@@ -224,5 +224,5 @@
         // Delete the remaining inner ways
         if(innerWays != null && innerWays.size() > 0)
-            cmds.add(DeleteCommand.delete(getEditLayer(), innerWays, true));
+            cmds.add(DeleteCommand.delete(Main.map.mapView.getEditLayer(), innerWays, true));
         commitCommands(marktr("Delete Ways that are not part of an inner multipolygon"));
 
Index: applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/DuplicatedWayNodes.java
===================================================================
--- applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/DuplicatedWayNodes.java	(revision 16734)
+++ applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/DuplicatedWayNodes.java	(revision 16735)
@@ -6,4 +6,5 @@
 import java.util.Collections;
 
+import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.command.ChangeCommand;
 import org.openstreetmap.josm.command.Command;
@@ -58,5 +59,5 @@
         if (wnew.nodes.size() < 2) {
             // Empty way, delete
-            return DeleteCommand.delete(Collections.singleton(w));
+            return DeleteCommand.delete(Main.map.mapView.getEditLayer(), Collections.singleton(w));
         } else {
             return new ChangeCommand(w, wnew);
Index: applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedNode.java
===================================================================
--- applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedNode.java	(revision 16734)
+++ applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedNode.java	(revision 16735)
@@ -96,5 +96,5 @@
     public Command fixError(TestError testError)
     {
-        return DeleteCommand.delete(testError.getPrimitives());
+        return DeleteCommand.delete(Main.map.mapView.getEditLayer(), testError.getPrimitives());
     }
 
Index: applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedWay.java
===================================================================
--- applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedWay.java	(revision 16734)
+++ applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedWay.java	(revision 16735)
@@ -152,5 +152,5 @@
     public Command fixError(TestError testError)
     {
-        return DeleteCommand.delete(testError.getPrimitives());
+        return DeleteCommand.delete(Main.map.mapView.getEditLayer(), testError.getPrimitives());
     }
 }
