mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing null pointer issue
This commit is contained in:
parent
37b4e27c42
commit
a1f851243c
@ -39,7 +39,7 @@ public class PolicyFilterImpl implements PolicyFilter {
|
|||||||
for (Policy policy : policies) {
|
for (Policy policy : policies) {
|
||||||
|
|
||||||
List<String> tempRoles = policy.getRoles();
|
List<String> tempRoles = policy.getRoles();
|
||||||
if (tempRoles != null) {
|
if (tempRoles == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (PolicyManagementConstants.ANY.equalsIgnoreCase(tempRoles.get(0))) {
|
if (PolicyManagementConstants.ANY.equalsIgnoreCase(tempRoles.get(0))) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user