From a1f851243c8753bd24733863861b953874ee5fb5 Mon Sep 17 00:00:00 2001 From: geethkokila Date: Thu, 21 May 2015 21:33:53 +0530 Subject: [PATCH] Fixing null pointer issue --- .../org/wso2/carbon/policy/mgt/core/impl/PolicyFilterImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/PolicyFilterImpl.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/PolicyFilterImpl.java index cdda237ca7..b9552e542e 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/PolicyFilterImpl.java +++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/PolicyFilterImpl.java @@ -39,7 +39,7 @@ public class PolicyFilterImpl implements PolicyFilter { for (Policy policy : policies) { List tempRoles = policy.getRoles(); - if (tempRoles != null) { + if (tempRoles == null) { continue; } if (PolicyManagementConstants.ANY.equalsIgnoreCase(tempRoles.get(0))) {