Error Message while getting Blackboard Component

Hello! I keep getting an Error every time I play, that the Blackboard in the AnimationBlueprint accessed none, even though the code clearly works.

Is this on tick? If so then the references could be empty for the first couple of frames while the world is initializing. Do a isValid checks for the character, and ai controller and see if the errors go away.

Yeah you were right, just delaying it by a tick resolved the issue! Thank you!