Fixing issue in get device API

This commit is contained in:
lasantha 2017-11-29 10:05:50 +05:30
parent 0e2f473a51
commit aa4f7c13c5

View File

@ -709,7 +709,7 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
} finally { } finally {
DeviceManagementDAOFactory.closeConnection(); DeviceManagementDAOFactory.closeConnection();
} }
if (requireDeviceInfo) { if (requireDeviceInfo && !allDevices.isEmpty()) {
paginationResult.setData(getAllDeviceInfo(allDevices)); paginationResult.setData(getAllDeviceInfo(allDevices));
} else { } else {
paginationResult.setData(allDevices); paginationResult.setData(allDevices);