Index: trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java	(revision 17396)
+++ trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java	(revision 17397)
@@ -713,6 +713,6 @@
             // we only need to change the way if its node list was really modified
             cmds.add(new ChangeNodesCommand(selectedSegment.way, wnew.getNodes()));
-            wnew.setNodes(null); // see #19885
-        }
+        }
+        wnew.setNodes(null); // see #19885
         Command c = new SequenceCommand(tr("Extrude Way"), cmds);
         UndoRedoHandler.getInstance().add(c);
