Error: Accessed none from node

Hi everybody,
I’m starting saying that I’m not expert in using Unreal and I’m still learning jumping from a tutorial to another, so maybe my problem is a real stupid one

I’m receiving the error “Accessed None ‘XXXX’ from node YYYY in graph ‘EventGraph’ in blueprint ZZZZ” when I’m testing my level

What I am trying to do:
starting from the first person shooter preset of unreal and adding a custom object in the scene I’d like to have an outline highlight when I’m near enough to the object and I’m looking at it, if the object has the ouline and I click on it a pop-up menu appear, when I click on a button of the pop-up menu the object I’ve added change to other object

What I’ve done:

  • Added an object inside the scene
  • It has the outline light when I’m near enough and I look at it (I call this “Focus it”)
  • If it’s focused I click and the pop-up menu appear

What is missing

  • It’s not switching the model of the object when I click on a button of the pop-up menu

Unreal gives me the same error when I focus the object (just with the function “Begin_Focus” and not with the “End_Focus” one) but it works great even with the error, instead with the function “Switch_to_A1” doesn’t work: to be honest i’ve not created everything from 0 but I started from [this tutorial][1] and take what I needed (the focusing part) and changed as I was more comfortable (edited the “get usable actor” function to work with more objects and added the rest of operations); to be even more honest already with the file provided with that tutorial gives me the error on the “Begin_Focus” function.
I thought that the problem could be in the variable “Armchair” both in the “Menu_PopUP_A” widget and in the “FirstPersonCharacter” blueprint, like they are seen empty by Unreal, but it’s just a “newbie thought”!

I try to provide more images I can (if more are needed I’ll surely post others)

Thanks in advance!

It very easy to see whats wrong, error point you direclly where is the issue. “Accessed None” means you trying to use or call somethign that does not exist or is not set yet, in your case it is “Armchair” varable, you do calls using that varable before that varable is set, or object that is that set to it is destroyed and you still doing calls on it. You either redesign youe blueprint in the way that it guarranty “Armchair” is always set, or you do check if “Armchair” is not None (IsValid node) before doing any actions on it

Sorry for my really late answer: you were right but unfortunately I didn’t know how to “give a value” to my variable (I’m a newbie for real!!) however I set it using the “cast to” and even if it still gives me an alert it works perfectly! Thanks for your help!