Access violation on C++ variable, set in BP

I wanted the whole .cpp code or at least the function where you are calling it. Because i’m pretty sure it’s NULL.