Changeset 846 in josm for trunk/src


Ignore:
Timestamp:
2008-08-22T21:48:19+02:00 (16 years ago)
Author:
stoecker
Message:

Fixed Exception. Closes #1440

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java

    r773 r846  
    9797                                        if (w.deleted || w.incomplete) continue;
    9898                                        int last = w.nodes.size()-1;
     99                                        if(last <= 0) continue; // zero or one node ways
    99100                                        Boolean circular = w.nodes.get(0).equals(w.nodes.get(last));
    100101                                        int i = 0;
Note: See TracChangeset for help on using the changeset viewer.