Ticket #18772: 18772.2.patch

File 18772.2.patch, 911 bytes (added by GerdP, 5 weeks ago)

log warning instead of showing a bug report

  • src/org/openstreetmap/josm/tools/Territories.java

     
    2626import javax.json.JsonValue;
    2727import javax.json.stream.JsonParser;
    2828import javax.json.stream.JsonParser.Event;
     29import javax.json.stream.JsonParsingException;
    2930
    3031import org.openstreetmap.josm.data.coor.LatLon;
    3132import org.openstreetmap.josm.data.osm.DataSet;
     
    187188                    }
    188189                }
    189190            }
    190         } catch (IOException e) {
    191             throw new JosmRuntimeException(e);
     191        } catch (IOException |JsonParsingException e) {
     192            Logging.trace(e);
     193            Logging.warn(tr("Failed to parse taginfo data geofabrik-index-v1-nogeom.json"));
    192194        }
    193195    }
    194196