Changeset 2000 in josm for trunk/src/org


Ignore:
Timestamp:
2009-08-29T10:58:42+02:00 (15 years ago)
Author:
Gubaer
Message:

fixed #3337: RuntimeException: java.lang.StackOverflowError in gui.PleaseWaitRunnable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java

    r1989 r2000  
    204204        remember(relation.id, OsmPrimitiveType.RELATION);
    205205        for (RelationMember member : relation.getMembers()) {
     206            if (OsmPrimitiveType.from(member.member).equals(OsmPrimitiveType.RELATION)) {
     207                // avoid infinite recursion in case of cyclic dependencies in relations
     208                //
     209                if (relations.contains(member.member.id)) {
     210                    continue;
     211                }
     212            }
    206213            appendGeneric(member.getMember());
    207214        }
    208215        return this;
    209216    }
    210 
    211217
    212218    protected MultiFetchServerObjectReader appendGeneric(OsmPrimitive primitive) {
Note: See TracChangeset for help on using the changeset viewer.