Fix test faliure by removing location null exception

remotes/1720607823028358574/master
Gimhan Wijayawardana 11 months ago
parent 368632e265
commit 1efc76b6e1

@ -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…
Cancel
Save