Fixing null pointer issue

This commit is contained in:
geethkokila 2015-05-21 21:33:53 +05:30
parent 37b4e27c42
commit a1f851243c

View File

@ -39,7 +39,7 @@ public class PolicyFilterImpl implements PolicyFilter {
for (Policy policy : policies) {
List<String> tempRoles = policy.getRoles();
if (tempRoles != null) {
if (tempRoles == null) {
continue;
}
if (PolicyManagementConstants.ANY.equalsIgnoreCase(tempRoles.get(0))) {