Skip to content

Commit 764e316

Browse files
adding the fix
1 parent 93f1b4f commit 764e316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/igot/cb/cache/CbPlanCacheMgr.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private List<Map<String, Object>> getCbPlanForOrgId(String orgId) {
100100

101101
public List<Map<String, Object>> getCbPlanForAllAndOrgId(String orgId, AtomicBoolean isCacheEnabled) {
102102
List<Map<String, Object>> activeCbPlans = cbPlanCache.getIfPresent(orgId);
103-
if (activeCbPlans != null) {
103+
if (CollectionUtils.isEmpty(activeCbPlans)) {
104104
log.info("Cache hit for orgId: {}, Found {} active CB Plans", orgId, activeCbPlans.size());
105105
activeCbPlans = new ArrayList<>();
106106
return activeCbPlans;

0 commit comments

Comments
 (0)