Changeset 483 in josm


Ignore:
Timestamp:
2007-12-05T12:49:40+01:00 (17 years ago)
Author:
gebner
Message:

OsmDataLayer: check for OsmPrimitive.keys == null

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r444 r483  
    358358                        if (n.incomplete || n.deleted || doneNodes.contains(n)) continue;
    359359                        WayPoint wpt = new WayPoint(n.coor);
    360                         if (n.keys.containsKey("name")) {
     360                        if (n.keys != null && n.keys.containsKey("name")) {
    361361                                wpt.attr.put("name", n.keys.get("name"));
    362362                        }
Note: See TracChangeset for help on using the changeset viewer.