Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
In the code block listed, it is possible that "AccessPolicy policy = getAccessPolicyByName(policyName);" may return null. In this case, delete policy should log this case and exit instead still trying to delete a null policy.
Description
@Override |
public void deletePolicyByName(String policyName) throws IOException { |
---|
AccessPolicy policy = getAccessPolicyByName(policyName); |
String policyID = policy.getPolicyID(); |
LOG.debug("policyID is: {}", policyID); |
deletePolicyById(policyID); |
} |
Attachments
Issue Links
- links to