Changeset 17132 in josm


Ignore:
Timestamp:
2020-10-09T08:02:47+02:00 (4 years ago)
Author:
simon04
Message:

see #16995 - WayPoint.LegacyMap silently ignored put(PT_TIME, null)

Fixes org.openstreetmap.josm.data.gpx.GpxDataTest.testMergeFromFiles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/gpx/WayPoint.java

    r17130 r17132  
    6464     */
    6565    public WayPoint(WayPoint p) {
    66         attr = new HashMap<>();
     66        attr = new HashMap<>(0);
    6767        attr.putAll(p.attr);
    68         attr.put(PT_TIME, p.getDate());
     68        if (p.getDate() != null) {
     69            attr.put(PT_TIME, p.getDate());
     70        }
    6971        lat = p.lat;
    7072        lon = p.lon;
     
    8284     */
    8385    public WayPoint(LatLon ll) {
    84         attr = new HashMap<>();
     86        attr = new HashMap<>(0);
    8587        lat = ll.lat();
    8688        lon = ll.lon();
Note: See TracChangeset for help on using the changeset viewer.