Simon Hunt

Fix incorrect boolean check for lat/long == 0.

Change-Id: I85672b455fb884ecac620b4dc38cddd9b4def8cd
...@@ -68,7 +68,7 @@ public class CreateNullDevice extends AbstractShellCommand { ...@@ -68,7 +68,7 @@ public class CreateNullDevice extends AbstractShellCommand {
68 DeviceId deviceId = sim.nextDeviceId(); 68 DeviceId deviceId = sim.nextDeviceId();
69 BasicDeviceConfig cfg = cfgService.addConfig(deviceId, BasicDeviceConfig.class); 69 BasicDeviceConfig cfg = cfgService.addConfig(deviceId, BasicDeviceConfig.class);
70 cfg.name(name); 70 cfg.name(name);
71 - if (latitude != 0 && longitude != 0) { 71 + if (latitude != 0 || longitude != 0) {
72 cfg.latitude(latitude); 72 cfg.latitude(latitude);
73 cfg.longitude(longitude); 73 cfg.longitude(longitude);
74 } 74 }
......