getting the BP runtime error "accessed none trying to read..." and cannot solve it.

Hey everyone, hope you are all having a great day !
I am getting the infamous “accessed none trying to read…” Bp error and I have searched the many topics that have answered this same kind of issue before but I still can’t make it work.

I want to be able to turn on and off a point light in my game with the keyboard press C.
So I created a BP (let’s call it BP1), put a point light in it and set it’s intensity to 0.

I want this point light to be following my third person character everywhere so I put the BP1 inside my third person character BP, then I created a variable referencing the point light in BP1 and made it public and editable.
this is the node setup for turning the light on and off in my third person character BP

pressing C in game with the flip flop connected to 2 on/off print strings prints on then off so it works, however when pressing C is connected to the set intensity, nothing happens and I get the famous error afterwards :

I noticed that if I drag and drop BP1 in the world, and set it in the “default” menu of the details panel of my thirdpersonchar, it works perfectly :

I need the BP1 which is linked to my third person character to turn on and off but it doesnt appear in the “default” menu :confused:

any idea on how to fix this?
thanks a lot for the help and have a great day !!

I think your variable is not instantiated

use this

Hi again, I just figured it out, I am dumb… : actually instead of putting a point light in BP1 and putting BP1 in my third person character BP, I just put a point light directly in the thirdpersoncharacter BP and dragged it in the event graph to get it’s reference, and plugged it in the target for my set intensity, and it all worked !!

:ok_hand: