Changeset 11533 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2017-02-04T01:51:01+01:00 (7 years ago)
Author:
Don-vip
Message:

fix regression from r11516 - get() does not throw the same exception as iterator().next()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OverpassDownloadReader.java

    r11516 r11533  
    117117            final PrimitiveId osmId = results.get(0).getOsmId();
    118118            return String.format("area(%d)", osmId.getUniqueId() + idOffset.get(osmId.getType()));
    119         } catch (IOException | NoSuchElementException ex) {
     119        } catch (IOException | NoSuchElementException | IndexOutOfBoundsException ex) {
    120120            throw new UncheckedParseException(ex);
    121121        }
Note: See TracChangeset for help on using the changeset viewer.