added check for cf actor

This commit is contained in:
IrynaMatveieva 2025-03-10 17:08:11 +02:00
parent 2c4346b993
commit cfc5a1f9d5

View File

@ -99,7 +99,6 @@ public class TenantActor extends RuleChainManagerActor {
() -> true); () -> true);
} catch (Exception e) { } catch (Exception e) {
log.info("Failed to init CF Actor.", e); log.info("Failed to init CF Actor.", e);
cantFindTenant = true;
} }
try { try {
if (getApiUsageState().isReExecEnabled()) { if (getApiUsageState().isReExecEnabled()) {
@ -190,6 +189,10 @@ public class TenantActor extends RuleChainManagerActor {
} }
private void onToCalculatedFieldSystemActorMsg(ToCalculatedFieldSystemMsg msg, boolean priority) { private void onToCalculatedFieldSystemActorMsg(ToCalculatedFieldSystemMsg msg, boolean priority) {
if (cfActor == null) {
log.warn("[{}] CF Actor is not initialized.", tenantId);
return;
}
if (priority) { if (priority) {
cfActor.tellWithHighPriority(msg); cfActor.tellWithHighPriority(msg);
} else { } else {