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


Ignore:
Timestamp:
2021-03-23T13:35:23+01:00 (4 years ago)
Author:
Don-vip
Message:

fix #20653 - catch IllegalArgumentException when parsing geojson

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/importexport/GeoJSONImporter.java

    r15865 r17646  
    5252            progressMonitor.worked(1);
    5353            MainApplication.getLayerManager().addLayer(new OsmDataLayer(data, file.getName(), file));
    54         } catch (IOException | IllegalDataException e) {
     54        } catch (IOException | IllegalArgumentException | IllegalDataException e) {
    5555            Logging.error("Error while reading json file!");
    5656            Logging.error(e);
  • trunk/src/org/openstreetmap/josm/io/GeoJSONReader.java

    r17356 r17646  
    413413            }
    414414            mergeEqualMultipolygonWays();
    415         } catch (IOException | JsonParsingException e) {
     415        } catch (IOException | IllegalArgumentException | JsonParsingException e) {
    416416            throw new IllegalDataException(e);
    417417        }
Note: See TracChangeset for help on using the changeset viewer.