Accessed None Error: When casting from Widget to Char Anim Bp

make sure that you character on the scene and if this logic immediately after begin play make delay 0.1 before it

Hello,
I am trying to get an animation played when I type in text from a text input widget.I am casting from the Widget BP to the Anim Bp to change an int value “attack state” that changes a bool which plays the animation.Below are screenshots as well as the error I keep getting. I have gone through the forums and I have noticed that This is a project specific error, any help will be appreciated

.