Access none on a enum array (Possible bug?)

I have been trying to figure this out for a while now i keep getting a access none on a enum array and i should not be getting one i have been doing all the proper checks to make sure everything is valid. Here is a picture of the array area.
now this does not stop the code from working at all the code still works fine but the error still shows…
im hopping there might be a way to fix this. now the enum array has 1 element in it i have check this many times over. but i still get the access none. im not sure if this is a bug or what.

error message :

Error Blueprint Runtime Error: Accessed None trying to read property CallFunc_Array_Get_Item53 from function: ‘ExecuteUbergraph_ThirtydayFirstPersonCharacter’ from node: ForEachLoopWithBreak in graph: reload slot 2 in object: ThirtydayFirstPersonCharacter with description: Accessed None trying to read property CallFunc_Array_Get_Item53
Error Blueprint Runtime Error: Accessed None from function: ‘ExecuteUbergraph_ThirtydayFirstPersonCharacter’ from node: ForEachLoopWithBreak in graph: reload slot 2 in object: ThirtydayFirstPersonCharacter with description: Accessed None

if anyone has any info on this please do tell.

thanks

bumping cause i need to get this fixed.

Would really like an answer to this as well

bumping for some kind of help on this…

i would think that the case if i was checking the length. which im not. last index will read 0 1 2 3 depending on the indexes in the array. length on the other hand goes by 12 3 an never starts at 0. ill test it anyways to see if thats the case when im in the office tomorrow but from what i under stand unless its been changed last index will start at 0 if there is a index in the array other wise it starts at -1 if no index’s are in the array.

Yeah, you are right. Can you maybe show where your array element nodes from your first ForEachLoopWithBreak are going and why you are not checking them? It’s difficult to see the big picture.

yeah ill take a neater screen shot in a bit but its the first last index in the image there. but those run fine. its the enum array thats causing the access none but ill neaten it up so its more readable as well. i code fast so i end up not making it all to neat since im the only one reading it .

updated the graph to point out the trouble section every thing else flows fine. The error it self does not even stop the code which is done on button press.
and the enum array has 1 element in it. and the enum array for each loop with break is what is causing the access none error.

there is one more for each loop with break in this graph

but it does not need checks since the checks for it where already run once and it does not toss any errors. picture of it anyways. this never errors out since i do all my checks at the start of the node chain.

I tested the check with last index and calling the array element, it works just fine. I can’t get my head around it, it must be the WeaponBase struct that has no Weapon Type assigned. If it’s not, I tried <3

thanks for trying! ill keep testing it see if i can find the error.

took out the for each with break on the enum and it runs fine with no error.