Ignore:
Timestamp:
2011-06-11T05:24:10+02:00 (13 years ago)
Author:
hassans
Message:

Ammended logic that now checks for ways instead of non-ways

File:
1 edited

Legend:

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

    r26119 r26121  
    157157               
    158158        // skip way if not suitable for routing.
    159                         if (way != null && !way.isDeleted() && this.isvalidWay(way)
    160                                         && way.getNodes().size() > 1) continue;
     159                        if (way == null || way.isDeleted() || !this.isvalidWay(way)
     160                                        || way.getNodes().size() < 1) continue;
    161161 
    162162          // INIT
Note: See TracChangeset for help on using the changeset viewer.