hlf 5 hónapja
szülő
commit
f9ae362a21

+ 4 - 5
ims-service/ims-eval/src/main/java/com/ims/eval/cache/CacheContext.java

@@ -234,10 +234,9 @@ public class CacheContext implements CommandLineRunner {
 		ruleList.clear();
 		ruleMap.clear();
 		ruleList = organizationEvaluationRuleService.list();
-
-		ruleList = ruleList.stream().filter(t -> !t.getDelFlag() && t.getIsCheck()).collect(Collectors.toList());
-		ruleMap = ruleList.stream().collect(Collectors.groupingBy(OrganizationEvaluationRule::getOrganizationId));
+		if (ruleList != null) {
+			ruleList = ruleList.stream().filter(t -> t != null && !t.getDelFlag() && t.getIsCheck()).collect(Collectors.toList());
+			ruleMap = ruleList.stream().collect(Collectors.groupingBy(OrganizationEvaluationRule::getOrganizationId));
+		}
 	}
-
-
 }