Changeset 7198 in josm for trunk/src


Ignore:
Timestamp:
2014-05-31T17:28:20+02:00 (6 years ago)
Author:
bastiK
Message:

fix NPE when adding tag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java

    r7185 r7198  
    2020
    2121import org.openstreetmap.josm.Main;
     22import org.openstreetmap.josm.data.coor.LatLon;
    2223import org.openstreetmap.josm.data.osm.Node;
    2324import org.openstreetmap.josm.data.osm.Tag;
     
    139140    public static ImageIcon getNodeIcon(Tag tag, boolean includeDeprecatedIcon) {
    140141        if (tag != null) {
    141             Node virtualNode = new Node();
     142            Node virtualNode = new Node(LatLon.ZERO);
    142143            virtualNode.put(tag.getKey(), tag.getValue());
    143144            StyleList styleList = getStyles().generateStyles(virtualNode, 0.5, null, false).a;
Note: See TracChangeset for help on using the changeset viewer.