mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge pull request 'Fix test faliure by removing location null exception' (#307) from Gimhan-minion/device-mgt-core:location-fix into master
Reviewed-on: https://repository.entgra.net/community/device-mgt-core/pulls/307
This commit is contained in:
commit
59288ca2a0
@ -442,8 +442,8 @@ public class DeviceInformationManagerImpl implements DeviceInformationManager {
|
|||||||
if (deviceLocation != null) {
|
if (deviceLocation != null) {
|
||||||
deviceDetailsDAO.deleteDeviceLocation(device.getId(), device.getEnrolmentInfo().getId());
|
deviceDetailsDAO.deleteDeviceLocation(device.getId(), device.getEnrolmentInfo().getId());
|
||||||
} else {
|
} else {
|
||||||
log.error("Device location not found for device: " + device.getId());
|
log.warn("Unable to find location for device with ID " + device.getId() + ". Location deletion request cannot be processed.");
|
||||||
throw new DeviceDetailsMgtException("Device location not found for device: " + device.getId());
|
return;
|
||||||
}
|
}
|
||||||
DeviceManagementDAOFactory.commitTransaction();
|
DeviceManagementDAOFactory.commitTransaction();
|
||||||
} catch (TransactionManagementException e) {
|
} catch (TransactionManagementException e) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user