Blueprint Runtime Error: Accessed None trying to read property CallFunc_Array_Get_Item

Blueprint Runtime Error: Accessed None trying to read property CallFunc_Array_Get_Item from function: ‘ExecuteUbergraph_SelectDifficulty’ from node: SetText (Text) in graph: EventGraph in object: SelectDifficulty with description: Accessed None trying to read property CallFunc_Array_Get_Item

I get this everytime I use Make Array as shown on the picture.

My game works flawless, even though I get the error. The array sent the text and everything to my HUD

Hey there, you have a lot of indexes without a valid entry, to protect against that you need to use Is Valid macro on the Array Element before using it.

Thanks for your reply. I do use IsValid.

Can you show me the rest of the for loop? I would say the problem is when you do the Set Text and the Array Element is none. Why do you have so many positions set to none in the make array?

I use a integer to check which level you have reached, so there will be values (none) that have spots I don’t need in the “choose difficulty” level. I only use those when you have to choose between 1 - 9 levels.

My game (select level and difficulty) works a 100%. Not a single problem, but I get this error in the editor.

alt text

You have to put an is valid for the array element before the branch inside of the for loop (both of them)

2 Likes