Ignore:
Timestamp:
2010-10-31T02:36:11+01:00 (14 years ago)
Author:
oliverw
Message:

Check for null in visit(Node).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/AddressFinderThread.java

    r23942 r23949  
    1717
    1818import org.openstreetmap.josm.Main;
     19import org.openstreetmap.josm.data.coor.LatLon;
    1920import org.openstreetmap.josm.data.osm.Changeset;
    2021import org.openstreetmap.josm.data.osm.Node;
     
    105106        @Override
    106107        public void visit(Node n) {
     108                if (n == null) return;
     109
     110                // If the coordinates are null, we are screwed anyway
    107111                double dist = osmAddressNode.getCoor().greatCircleDistance(n.getCoor());
    108112               
Note: See TracChangeset for help on using the changeset viewer.