Index: applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/SplitObjectAction.java
===================================================================
--- applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/SplitObjectAction.java	(revision 29118)
+++ applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/SplitObjectAction.java	(revision 29121)
@@ -76,5 +76,6 @@
         Way splitWay = null;
 
-        if (selectedNodes.isEmpty()) {              // if no nodes are selected - try to find split way
+        if (selectedNodes.size() != 2) {            // if not exactly 2 nodes are selected - try to find split way
+            selectedNodes.clear();                  // empty selected nodes (see #8237)
             for (Way selWay : selectedWays) {       // we assume not more 2 ways in the list
                 if (selWay != null &&               // If one of selected ways is not closed we have it to get split points
