Changeset 18063 in josm for trunk/src/org


Ignore:
Timestamp:
2021-07-18T13:05:59+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #21133 - IOOBE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/ImageData.java

    r18050 r18063  
    129129     */
    130130    public List<ImageEntry> getSelectedImages() {
    131         return selectedImagesIndex.stream().filter(i -> i > -1).map(data::get).collect(Collectors.toList());
     131        return selectedImagesIndex.stream().filter(i -> i > -1 && i < data.size()).map(data::get).collect(Collectors.toList());
    132132    }
    133133
Note: See TracChangeset for help on using the changeset viewer.