Hide/Show Widget from Line Trace

Hello, I’m trying to change my Healthbar Widget color when an Actor is traced and when it’s not.

When Actor is hitted by the trace, it changes color accordingly, but when it stops being traced, seems like not working. (The Cast Failed node isn’t doing anything)

What am I missing?

Thanks.

When the cast fails, the return of the cast (in this case RagdollNoobotChar) is null. So, when the cast fails you’re saying SetTintColor of a null pointer to green which is obviously not what you want.