First let’s handle your crashing issue.
if (HearingConfig)
{
if(Stimulus.Type == HearingConfig->GetSenseID()) // Exception here
{
// Do stuff
}
}
After we fix the crashing issue, check if it fixes, if not, you should add some debug messages to see whose calling the function.