diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/dao/impl/DeviceDAOImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/dao/impl/DeviceDAOImpl.java index bd61aec1858..31857fc330e 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/dao/impl/DeviceDAOImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/dao/impl/DeviceDAOImpl.java @@ -279,7 +279,7 @@ public class DeviceDAOImpl implements DeviceDAO { while (resultSet.next()) { Device device = new Device(); DeviceType deviceType = new DeviceType(); - int id = resultSet.getInt(resultSet.getInt(1)); + int id = resultSet.getInt(1); deviceType.setId(id); deviceType.setName(resultSet.getString(2)); device.setId(resultSet.getInt(3));