From 5e687356255ef7d7a6f5eb987cd30704bbd1c89f Mon Sep 17 00:00:00 2001 From: Dulitha Wijewantha Date: Thu, 22 Jan 2015 22:06:37 +0530 Subject: [PATCH] Removed the exception. It has to be handled in a different layer --- .../java/org/wso2/carbon/device/mgt/core/DeviceManagerImpl.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagerImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagerImpl.java index 0b7b402d22f..726c43c3430 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagerImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagerImpl.java @@ -135,8 +135,6 @@ public class DeviceManagerImpl implements DeviceManager { convertedDevice.setProperties(dmsDevice.getProperties()); convertedDevice.setFeatures(dmsDevice.getFeatures()); } - } else { - throw new DeviceManagementException("No device found for the id '" + deviceId.getId() + "'"); } } catch (DeviceManagementDAOException e) { throw new DeviceManagementException(