diff --git a/auth-agents-common/src/main/java/org/apache/atlas/plugin/service/RangerBasePlugin.java b/auth-agents-common/src/main/java/org/apache/atlas/plugin/service/RangerBasePlugin.java index af0aa716e1..0c86b8b89d 100644 --- a/auth-agents-common/src/main/java/org/apache/atlas/plugin/service/RangerBasePlugin.java +++ b/auth-agents-common/src/main/java/org/apache/atlas/plugin/service/RangerBasePlugin.java @@ -324,6 +324,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;