Array Generating a Crash Report on Startup

Add a couple of arrays to your gameinstance, one for names and the other booleans.

e.g. NameArray and BoolArray

10 entries in each and set them to any values.

Create a function in a function library that access them.

e.g ReturnArrayValues

get gameinstance->Cast to MyGameIinstance

MyGamestance->Get NameArray

->GetBoolArray

Nothing else needs to be done.

Save all, Quit Unreal.

Reopen the project and while everything is loaded it will generate a crash report:

The message log shows the crash happens in the forEachloop - setting the wildcard seems to fix the issue. Please note I have not used anything (no forloops in code) to access the array.

What I want to know is what is causing it?

I am guessing that the function might be getting accessed before the array is defined but since it all happens while Unreal is loading the project, I am not sure how to track the issue down. This is on the Mac, so do not know if the same thing happens on the PC.