Index: trunk/test/unit/org/openstreetmap/josm/actions/SelectByInternalPointActionTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/actions/SelectByInternalPointActionTest.java	(revision 10409)
+++ trunk/test/unit/org/openstreetmap/josm/actions/SelectByInternalPointActionTest.java	(revision 10413)
@@ -39,5 +39,5 @@
     public void testNoDataSet() {
         while (Main.main.hasEditLayer()) {
-            Main.main.removeLayer(Main.main.getEditLayer());
+            Main.main.removeLayer(Main.getLayerManager().getEditLayer());
         }
         assertNull(JosmAction.getCurrentDataSet());
