Ignore:
Timestamp:
2019-08-27T20:34:29+02:00 (5 years ago)
Author:
Don-vip
Message:

see #18035 - validate arguments in SelectCommand constructor

File:
1 edited

Legend:

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

    r13173 r15324  
    3535        if (newSelection == null || newSelection.isEmpty()) {
    3636            this.newSelection = Collections.emptySet();
     37        } else if (newSelection.contains(null)) {
     38            throw new IllegalArgumentException("null primitive in selection");
    3739        } else {
    3840            this.newSelection = new HashSet<>(newSelection);
Note: See TracChangeset for help on using the changeset viewer.