Ignore:
Timestamp:
2011-07-06T20:47:46+02:00 (13 years ago)
Author:
akks
Message:

Fixed NPE ticket #6335 (getId -> getUniqueId)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/dumbutils/PasteRelationsAction.java

    r25887 r26269  
    3232        Map<Relation, String> relations = new HashMap<Relation, String>();
    3333        for( PrimitiveData pdata : Main.pasteBuffer.getDirectlyAdded() ) {
    34             OsmPrimitive p = getCurrentDataSet().getPrimitiveById(pdata.getId(), pdata.getType());
     34            OsmPrimitive p = getCurrentDataSet().getPrimitiveById(pdata.getUniqueId(), pdata.getType());
    3535            for( Relation r : OsmPrimitive.getFilteredList(p.getReferrers(), Relation.class)) {
    3636                String role = relations.get(r);
Note: See TracChangeset for help on using the changeset viewer.