Changeset 17242 in josm


Ignore:
Timestamp:
2020-10-19T15:24:10+02:00 (4 years ago)
Author:
GerdP
Message:

see #19885: memory leak with "temporary" objects in validator and actions
Allow empty member list. Unlike with ways we allow empty relations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/ChangeMembersCommand.java

    r17207 r17242  
    3636        this.relation = Objects.requireNonNull(relation, "relation");
    3737        this.cmdMembers = Objects.requireNonNull(newMembers, "newMembers");
    38         if (cmdMembers.isEmpty()) {
    39             throw new IllegalArgumentException("Members collection is empty");
    40         }
    4138    }
    4239
Note: See TracChangeset for help on using the changeset viewer.