Changeset 34187 in osm


Ignore:
Timestamp:
2018-05-10T22:33:58+02:00 (6 years ago)
Author:
donvip
Message:

fix #josm16267 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/core/RoutingGraph.java

    r33794 r34187  
    1313import org.jgrapht.alg.DijkstraShortestPath;
    1414import org.jgrapht.graph.DirectedWeightedMultigraph;
    15 import org.openstreetmap.josm.data.coor.LatLon;
    1615import org.openstreetmap.josm.data.osm.DataSet;
    1716import org.openstreetmap.josm.data.osm.Node;
     
    219218     */
    220219    private void addEdge(Way way, Node from, Node to) {
    221         LatLon fromLL = from.getCoor();
    222         LatLon toLL = from.getCoor();
    223         if (fromLL == null || toLL == null) {
     220        if (!from.isLatLonKnown() || !to.isLatLonKnown()) {
    224221            return;
    225222        }
Note: See TracChangeset for help on using the changeset viewer.