Index: /applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/actions/SortPTRouteMembersAction.java
===================================================================
--- /applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/actions/SortPTRouteMembersAction.java	(revision 33510)
+++ /applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/actions/SortPTRouteMembersAction.java	(revision 33511)
@@ -150,4 +150,7 @@
         ptstops.forEach(stop -> {
             Way way = assigner.get(stop);
+            if (way == null) {
+                addStopToRelation(rel, stop);
+            }
             if (!wayStop.containsKey(way))
                 wayStop.put(way, new ArrayList<PTStop>());
@@ -157,4 +160,7 @@
         unnamed.forEach(stop -> {
             Way way = assigner.get(stop);
+            if (way == null) {
+                addStopToRelation(rel, stop);
+            }
             if (!wayStop.containsKey(way))
                 wayStop.put(way, new ArrayList<PTStop>());
@@ -185,8 +191,5 @@
                     stps.forEach(stop -> {
                         if (stop != null) {
-                            if (stop.getStopPositionRM() != null)
-                                rel.addMember(stop.getStopPositionRM());
-                            if (stop.getPlatformRM() != null)
-                                rel.addMember(stop.getPlatformRM());
+                            addStopToRelation(rel, stop);
                         }
                     });
@@ -196,4 +199,11 @@
 
         wayMembers.forEach(rel::addMember);
+    }
+
+    private static void addStopToRelation(Relation rel, PTStop stop) {
+        if (stop.getStopPositionRM() != null)
+            rel.addMember(stop.getStopPositionRM());
+        if (stop.getPlatformRM() != null)
+            rel.addMember(stop.getPlatformRM());
     }
 
