Thomas Vachuska
Committed by Gerrit Code Review

Fixing null-create-device to allow no lat/long.

Change-Id: Id0d221a13f6e410fb8ea0e7aee6ede870c3fe05d
......@@ -68,8 +68,10 @@ public class CreateNullDevice extends AbstractShellCommand {
DeviceId deviceId = sim.nextDeviceId();
BasicDeviceConfig cfg = cfgService.addConfig(deviceId, BasicDeviceConfig.class);
cfg.name(name);
if (latitude != 0 && longitude != 0) {
cfg.latitude(latitude);
cfg.longitude(longitude);
}
cfg.apply();
sim.createDevice(deviceId, name, Device.Type.valueOf(type.toUpperCase()), portCount);
......