TickTask doesn't work

Hello! I created new BehaviorTree task. In ExecuteTask Event I have:

if (bSomeBool)
             APawn* AIPawn = OwnerComp.GetAIOwner()->GetPawn();

If bSomeBool == true then TickTask Event doesn’t work at all even before this code is executed.
Any ideas?

P.S. copied from AnswerHub help me!:confused:

OK, then mb somebody can explain to me how to FinishLatentTask() in my BTTask function, where I don’t have access to UBehaviorTreeComponent& OwnerComp? How to get OwnerComp?