I don't understand how to fix this error (Accessed none trying to read Property)

Hi all,

I’m getting this error after PIE.

And here is the blueprint causing the issue:

During playtime, the game seems to do what it should do: I can play without anything strange happening (seemingly according to plan). However, once I finish PIE, the engine gives me this warning. Obviously something is set up wrong with Destroy Actor… but how do I fix this?

Thanks a lot in advance!

It’s pretty simple. You should store the actor reference in variable instead of using just return value from other frame) This usually leads to errors.

Yes, it is.

I figured it would be something simple.
However… I’m pretty sure I still did something wrong?

Because I still get the same error message.

I hope you’re trying to destroy your actor after you create it, right? Check yourself with print string nodes

I figured it out, thanks to print string nodes! As it turns out I accidentally delete the acter before it’s created because apparently I had used LMB as a binding for this action, which I was supposed to remove and forgot to.

Thanks for helping out!