Changeset 7662 in josm for trunk/src


Ignore:
Timestamp:
2014-10-27T23:48:04+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #10667 - NPE while sorting relation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/sort/RelationNodeMap.java

    r7005 r7662  
    8080        for (int i = 0; i < members.size(); ++i) {
    8181            RelationMember m = members.get(i);
    82             if (m.getMember().isIncomplete() || !m.isWay()) {
     82            if (m.getMember().isIncomplete() || !m.isWay() || m.getWay().getNodesCount() < 2) {
    8383                notSortable.add(i);
    8484                continue;
Note: See TracChangeset for help on using the changeset viewer.