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/visitor/paint/relations/Multipolygon.java

    r16115 r16119  
    424424                    for (Long wayId : wayIds) {
    425425                        Way w = (Way) ds.getPrimitiveById(wayId, OsmPrimitiveType.WAY);
    426                         if (w != null && w.getNodesCount() > 0) { // fix #7173 (empty ways on purge)
     426                        if (w != null && !w.isEmpty()) { // fix #7173 (empty ways on purge)
    427427                            waysToJoin.add(w);
    428428                        }
     
    599599                for (int i = 0; i < joinArray.length && left != 0; ++i) {
    600600                    Way c = joinArray[i];
    601                     if (c != null && c.getNodesCount() > 0) {
     601                    if (c != null && !c.isEmpty()) {
    602602                        if (nodes == null) {
    603603                            // new ring
Note: See TracChangeset for help on using the changeset viewer.