Index: trunk/src/org/openstreetmap/josm/command/DeleteCommand.java
===================================================================
--- trunk/src/org/openstreetmap/josm/command/DeleteCommand.java	(revision 4321)
+++ trunk/src/org/openstreetmap/josm/command/DeleteCommand.java	(revision 4322)
@@ -388,4 +388,7 @@
 
     public static Command deleteWaySegment(OsmDataLayer layer, WaySegment ws) {
+        if (ws.way.getNodesCount() < 3)
+            return delete(layer, Collections.singleton(ws.way), false);
+
         if (ws.way.firstNode() == ws.way.lastNode()) {
             // If the way is circular (first and last nodes are the same),
