Changeset 11140 in josm


Ignore:
Timestamp:
2016-10-17T22:18:31+02:00 (8 years ago)
Author:
michael2402
Message:

See #13724: Add validation to AddCommand, too.

File:
1 edited

Legend:

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

    r10467 r11140  
    3737     */
    3838    public AddCommand(OsmPrimitive osm) {
    39         this.osm = osm;
     39        this.osm = Objects.requireNonNull(osm, "osm");
    4040    }
    4141
     
    4747    public AddCommand(OsmDataLayer layer, OsmPrimitive osm) {
    4848        super(layer);
    49         this.osm = osm;
     49        this.osm = Objects.requireNonNull(osm, "osm");
    5050    }
    5151
Note: See TracChangeset for help on using the changeset viewer.