commit | 1ff090116a69bbd0d7f941061dc3fe62ef240343 | [log] [tgz] |
---|---|---|
author | Simon Hunt <simon@onlab.us> | Wed Sep 28 10:14:39 2016 -0700 |
committer | Simon Hunt <simon@onlab.us> | Wed Sep 28 10:14:47 2016 -0700 |
tree | 9efd5f553840107e6ed73d37b0625b6daf17169c | |
parent | 72c5e4324038fb599c93314adcb6e906e2490d1f [diff] |
Fix incorrect boolean check for lat/long == 0. Change-Id: I85672b455fb884ecac620b4dc38cddd9b4def8cd
diff --git a/providers/null/src/main/java/org/onosproject/provider/nil/cli/CreateNullDevice.java b/providers/null/src/main/java/org/onosproject/provider/nil/cli/CreateNullDevice.java index 6332e6f..959a7c5 100644 --- a/providers/null/src/main/java/org/onosproject/provider/nil/cli/CreateNullDevice.java +++ b/providers/null/src/main/java/org/onosproject/provider/nil/cli/CreateNullDevice.java
@@ -68,7 +68,7 @@ DeviceId deviceId = sim.nextDeviceId(); BasicDeviceConfig cfg = cfgService.addConfig(deviceId, BasicDeviceConfig.class); cfg.name(name); - if (latitude != 0 && longitude != 0) { + if (latitude != 0 || longitude != 0) { cfg.latitude(latitude); cfg.longitude(longitude); }