GetMesh()->GetAnimInstance() Returning Null

When i try to cache the player’s AnimInstance it keeps returning null even though the anim instance is active and drives the character animation. I want to use it to play a montage so i have to cache and use it but i’ve had no luck it just keeps returning null.

Since it is a data driven framework I’m working on it tries to get the parent Anim Instance class rather than as specific one and to clear all doubts i tried hard coding the actual character class in the game to get the instance of that class’s anim instance but even that returned null

Screenshot 2025-08-24 041457

Only the anim instance seems to have an issue, because getting the mesh works just fine

And clearly from the video the animation blueprint works just fine so i really don’t get what’s wrong can someone please help me out??

Screenshot 2025-08-24 042414