Changeset 2583 in josm


Ignore:
Timestamp:
2009-12-06T14:00:55+01:00 (15 years ago)
Author:
jttt
Message:

Fix #4103 Exception on undo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r2578 r2583  
    890890        List<OsmPrimitive> result = new ArrayList<OsmPrimitive>();
    891891        if (referrers != null) {
    892             if ((referrers instanceof OsmPrimitive) && (((OsmPrimitive)referrers).dataSet == dataSet)) {
    893                 result.add((OsmPrimitive)referrers);
     892            if (referrers instanceof OsmPrimitive) {
     893                OsmPrimitive ref = (OsmPrimitive)referrers;
     894                if (ref.dataSet == dataSet) {
     895                    result.add(ref);
     896                }
    894897            } else {
    895898                for (OsmPrimitive o:(OsmPrimitive[])referrers) {
Note: See TracChangeset for help on using the changeset viewer.