Changeset 3892 in osm


Ignore:
Timestamp:
2007-08-02T10:18:22+02:00 (17 years ago)
Author:
christofd
Message:

check for null segments or ways

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/navigator/src/at/dallermassl/josm/plugin/navigator/OsmGraphCreator.java

    r3865 r3892  
    5858        // iterate all ways and segments for all nodes:
    5959        for(Way way : Main.ds.ways) {
    60             if(!way.deleted) {               
     60            if(way != null && !way.deleted) {               
    6161                for(Segment segment : way.segments) {
    62                     if(!segment.deleted) {
     62                    if(segment != null && !segment.deleted && segment.from != null && segment.to != null) {
    6363                        graph.addVertex(segment.from);
    6464                        graph.addVertex(segment.to);
Note: See TracChangeset for help on using the changeset viewer.