Ignore:
Timestamp:
2020-03-14T13:26:33+01:00 (4 years ago)
Author:
Don-vip
Message:

fix #18928 - fix various crashes with empty ways

File:
1 edited

Legend:

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

    r15418 r16119  
    2222     */
    2323    int getMembersCount();
     24
     25    /**
     26     * Determines if this relation is empty, i.e. it has no members.
     27     * @return {@code true} if this relation is empty, i.e. it has no members
     28     * @since 16119
     29     */
     30    default boolean isEmpty() {
     31        return getMembersCount() == 0;
     32    }
    2433
    2534    /**
Note: See TracChangeset for help on using the changeset viewer.