added check for cf actor
This commit is contained in:
		
							parent
							
								
									2c4346b993
								
							
						
					
					
						commit
						cfc5a1f9d5
					
				@ -99,7 +99,6 @@ public class TenantActor extends RuleChainManagerActor {
 | 
			
		||||
                                    () -> true);
 | 
			
		||||
                        } catch (Exception e) {
 | 
			
		||||
                            log.info("Failed to init CF Actor.", e);
 | 
			
		||||
                            cantFindTenant = true;
 | 
			
		||||
                        }
 | 
			
		||||
                        try {
 | 
			
		||||
                            if (getApiUsageState().isReExecEnabled()) {
 | 
			
		||||
@ -190,6 +189,10 @@ public class TenantActor extends RuleChainManagerActor {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private void onToCalculatedFieldSystemActorMsg(ToCalculatedFieldSystemMsg msg, boolean priority) {
 | 
			
		||||
        if (cfActor == null) {
 | 
			
		||||
            log.warn("[{}] CF Actor is not initialized.", tenantId);
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
        if (priority) {
 | 
			
		||||
            cfActor.tellWithHighPriority(msg);
 | 
			
		||||
        } else {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user