Changeset 11313 in josm for trunk/src


Ignore:
Timestamp:
2016-11-26T00:22:40+01:00 (3 years ago)
Author:
Don-vip
Message:

findbugs - NP_NULL_PARAM_DEREF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/Multipolygon.java

    r10662 r11313  
    170170        /**
    171171         * Constructs a new {@code JoinedWay}.
    172          * @param nodes list of nodes
    173          * @param wayIds list of way IDs
     172         * @param nodes list of nodes - must not be null
     173         * @param wayIds list of way IDs - must not be null
    174174         * @param selected whether joined way is selected or not
    175175         */
     
    606606            }
    607607
    608             result.add(new JoinedWay(nodes, wayIds, selected));
     608            if (nodes != null) {
     609                result.add(new JoinedWay(nodes, wayIds, selected));
     610            }
    609611        }
    610612
Note: See TracChangeset for help on using the changeset viewer.