mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing the null pointer
This commit is contained in:
parent
0f146e83fa
commit
fed4f72d4b
@ -249,7 +249,7 @@ public class MonitoringManagerImpl implements MonitoringManager {
|
|||||||
|
|
||||||
HashMap<Integer, Integer> temp = policyDAO.getAppliedPolicyIds();
|
HashMap<Integer, Integer> temp = policyDAO.getAppliedPolicyIds();
|
||||||
for (Integer id : deviceIDs) {
|
for (Integer id : deviceIDs) {
|
||||||
if (temp != null && temp.containsKey(id)) {
|
if (temp != null && !temp.isEmpty() && temp.containsKey(id)) {
|
||||||
devicePolicyIdMap.put(id, temp.get(id));
|
devicePolicyIdMap.put(id, temp.get(id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user