Blueprint Runtime Error: "Accessed None trying to read property"

So I’ve created a simple pressure plate and door system following someones tut. However now when I go to play then hop back into editor I’m met with this error

Blueprint Runtime Error: “Accessed None trying to read property DoorToActivate”. Node: Switch Deactivated Graph: EventGraph Function: Execute Ubergraph BP Pressure Plate Blueprint: BP_PressurePlate

(UPDATE: It’s happening for both “switch activated and switch deactivated”) Not really sure why.

Now I’ve checked previous questions and tried to find the source of the problem and when I check the others questions it seems there’s an error under the event graph for said item. But when I check what my error is taking me to all I see is this.

I tried deleting and redoing it and still to no avail I keep getting the error with just no way to tell what is actually going on.

If anyone with some higher expertise could lend some geniusness that would be amazing! Thank you!

The error is basically saying that the DoorToActivate variable is empty/null. And it can’t call the functions on something that doesn’t exist.

I can see that you marked the variable as instance editable by clicking the eye icon next to the variable. But did you select which door you want to use from the Level?

2 Likes

forehead-slap-slapping-forehead

Nope, I sure didn’t. And that would explain everything. Thank you, Arjun!

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.