Changeset 1731 in josm for trunk/src/org


Ignore:
Timestamp:
2009-07-04T22:10:43+02:00 (15 years ago)
Author:
stoecker
Message:

fixed #2815 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/Node.java

    r1724 r1731  
    2323
    2424    public final void setCoor(LatLon coor) {
    25         if(this.coor == null)
    26             this.coor = new CachedLatLon(coor);
    27         else
    28             this.coor.setCoor(coor);
     25        if(coor != null)
     26        {
     27            if(this.coor == null)
     28                this.coor = new CachedLatLon(coor);
     29            else
     30                this.coor.setCoor(coor);
     31        }
    2932    }
    3033
Note: See TracChangeset for help on using the changeset viewer.