Fix for new exception occured with latest CDMF changes

application-manager-new
charithag 9 years ago
parent a9ee964a07
commit 2fe3f14b55

@ -138,7 +138,9 @@ deviceModule = function () {
* @returns {Array}
*/
publicMethods.listDeviceTypes = function () {
deviceManagementDAOFactory.openConnection();
var deviceTypes = deviceManagementDAOFactory.getDeviceTypeDAO().getDeviceTypes();
deviceManagementDAOFactory.closeConnection();
var deviceTypesList = [];
var i, deviceType, deviceTypeObject;
for (i = 0; i < deviceTypes.size(); i++) {

Loading…
Cancel
Save