|
|
@ -380,8 +380,11 @@ public class MonitoringManagerImpl implements MonitoringManager {
|
|
|
|
|
|
|
|
|
|
|
|
List<String> deviceTypes = new ArrayList<>();
|
|
|
|
List<String> deviceTypes = new ArrayList<>();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
//when shutdown, it sets DeviceManagementService to null, therefore need to have a null check
|
|
|
|
|
|
|
|
if (PolicyManagementDataHolder.getInstance().getDeviceManagementService() != null) {
|
|
|
|
deviceTypes =
|
|
|
|
deviceTypes =
|
|
|
|
PolicyManagementDataHolder.getInstance().getDeviceManagementService().getAvailableDeviceTypes();
|
|
|
|
PolicyManagementDataHolder.getInstance().getDeviceManagementService().getAvailableDeviceTypes();
|
|
|
|
|
|
|
|
}
|
|
|
|
} catch (DeviceManagementException e) {
|
|
|
|
} catch (DeviceManagementException e) {
|
|
|
|
throw new PolicyComplianceException("Error occurred while getting the device types.", e);
|
|
|
|
throw new PolicyComplianceException("Error occurred while getting the device types.", e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|