You should run this in the debugger, which lets you look at the variables in question.
Maybe GetPerceptionComponent() returns NULL?
Maybe LastSensedStimuli is not present?
Use “Attach to Process” if you need to debug the game while “running in editor,” or use the launch mode that starts the game as its own process and debug that.
Seems to be an issue with the stack trace line number display. It was a null pointer dereference issue but with another line.
I was calling SenseClass->GetClass() without a nullcheck.