Error: "Accessed None trying to read property CallFunc_Array_Get_Item_1"

Goodday!

From this code:

image

I got this error:
Blueprint Runtime Error: “Accessed None trying to read property CallFunc_Array_Get_Item_1”. Blueprint: DVD_BP Function: Execute Ubergraph DVD BP Graph: EventGraph Node: Branch

2 Likes

Hi Doeglas,
It could mean that there are no CD_BP actors found when calling the “GetAllActorsOfClass” - it sounds like the array of actors is empty.

Rather than just look at the first item in the array, you can add a check to see if the array “Length” is greater than 0. Or you could use a “ForEach” on the array and check each one (that does a check if it’s empty).

3 Likes

And this is the easiest way to get a variable from another bp?

2 Likes

It is the easiest, but not the fastest - the fastest would be to store a reference to the actor you’re wanting in the overlapping actor.

2 Likes

Alright, I’ll see if I can work it out but I’m pretty new to UE4 and still in the learning process so there will be a chance that I have no idea how to do any you just explained.

2 Likes

Just holler if you need a hand…

I got it working. Thank you!

1 Like