Changeset 5766 in josm for trunk


Ignore:
Timestamp:
2013-03-08T23:58:43+01:00 (7 years ago)
Author:
Don-vip
Message:

see #8490 - fix NPE

File:
1 edited

Legend:

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

    r5753 r5766  
    112112            }
    113113        }
    114         osm.mappaintStyle = osm.mappaintStyle.put(p.a, p.b);
     114        if (p != null) {
     115            osm.mappaintStyle = osm.mappaintStyle.put(p.a, p.b);
     116        }
    115117        osm.mappaintCacheIdx = cacheIdx;
    116118        return p;
Note: See TracChangeset for help on using the changeset viewer.