Ignore:
Timestamp:
2020-03-15T17:18:28+01:00 (4 years ago)
Author:
GerdP
Message:

see #18928: fix crash with empty way

File:
1 edited

Legend:

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

    r15688 r16135  
    274274        if (ds == null)
    275275            return;
    276         Collection<Way> selectedWays = ds.getSelectedWays();
     276        Collection<Way> selectedWays = new LinkedHashSet<>(ds.getSelectedWays());
     277        selectedWays.removeIf(Way::isEmpty);
    277278        if (selectedWays.size() < 2) {
    278279            new Notification(
Note: See TracChangeset for help on using the changeset viewer.