Changeset 33442 in osm for applications/editors/josm/plugins/pt_assistant
- Timestamp:
- 2017-07-14T11:24:46+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/actions/SortPTStopsAction.java
r33440 r33442 185 185 } 186 186 187 boolean reverse = prev.firstNode().equals(way.lastNode()) 188 || prev.lastNode().equals(way.lastNode()); 187 boolean reverse = prev != null && 188 (prev.firstNode().equals(way.lastNode()) 189 || prev.lastNode().equals(way.lastNode())); 189 190 190 191 if (reverse) 191 192 Collections.reverse(nodes); 193 194 List<PTStop> ret = getSortedStops(nodes, closeNodes); 195 ret.addAll(noLocationStops); 196 return ret; 197 } 198 199 private List<PTStop> getSortedStops(List<Node> nodes, 200 Map<Node, List<PTStop>> closeNodes) { 192 201 193 202 List<PTStop> ret = new ArrayList<>(); … … 208 217 } 209 218 210 ret.addAll(noLocationStops);211 219 return ret; 212 220 }
Note:
See TracChangeset
for help on using the changeset viewer.