Skip to content

Commit

Permalink
Merge pull request #3976 from atlanhq/ns/fix/policy-last-updated
Browse files Browse the repository at this point in the history
DG-1986 | Throw exception if policy engine is null
  • Loading branch information
krsoninikhil authored Jan 14, 2025
2 parents 65fe2e9 + 55d6e7c commit 556e9ce
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ public void setPolicies(ServicePolicies policies) {
if (defaultSvcPolicies == null) {
LOG.error("Could not get default Service Policies. Keeping old policy-engine! This is a FATAL error as the old policy-engine is null!");
isNewEngineNeeded = false;
throw new RuntimeException("PolicyRefresher("+policies.getServiceName()+").setPolicies: fetched service policies contains no policies or delta and current policy engine is null");
} else {
defaultSvcPolicies.setPolicyVersion(policies.getPolicyVersion());
policies = defaultSvcPolicies;
Expand Down

0 comments on commit 556e9ce

Please sign in to comment.