Ignore:
Timestamp:
2013-09-04T00:37:59+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #9042 - Robustness to invalid .osm files containing null coordinates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java

    r6202 r6215  
    3737import org.openstreetmap.josm.command.SequenceCommand;
    3838import org.openstreetmap.josm.data.coor.EastNorth;
     39import org.openstreetmap.josm.data.coor.LatLon;
    3940import org.openstreetmap.josm.data.osm.DataSet;
    4041import org.openstreetmap.josm.data.osm.Node;
     
    698699            }
    699700            for (Node n : affectedNodes) {
    700                 if (n.getCoor().isOutSideWorld()) {
     701                LatLon ll = n.getCoor();
     702                if (ll != null && ll.isOutSideWorld()) {
    701703                    // Revert move
    702704                    ((MoveCommand) c).resetToCheckpoint();
Note: See TracChangeset for help on using the changeset viewer.