Fixing the null pointer

revert-70aa11f8
geethkokila 9 years ago
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…
Cancel
Save