Merge pull request #1190 from ruwany/master

Removing code that leads to an exception when retrieved device count is 0
revert-70aa11f8
Charitha Goonetilleke 7 years ago committed by GitHub
commit c0615fee83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2535,11 +2535,6 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
* of the given device list. * of the given device list.
*/ */
private List<Device> getAllDeviceInfo(List<Device> allDevices) throws DeviceManagementException { private List<Device> getAllDeviceInfo(List<Device> allDevices) throws DeviceManagementException {
if (allDevices.size() == 0) {
String msg = "Received empty device list for getAllDeviceInfo";
log.error(msg);
throw new DeviceManagementException(msg);
}
if (log.isDebugEnabled()) { if (log.isDebugEnabled()) {
log.debug("Get all device info of devices, num of devices: " + allDevices.size()); log.debug("Get all device info of devices, num of devices: " + allDevices.size());
} }

Loading…
Cancel
Save