K2Node_SwitchObject

Hello.

Looks like you’re having a null pointer exception.
In two different places, you are calling Class->IsValidLowLevel(), but that code itself can crash with a null pointer exception if the Class object itself is null.

You can either change those checks to use IsValid(Class) (which internally handles the case of Class being nullptr), or change your condition to if(Class && Class->IsValidLowLevel()).

Any of those two options should avoid a null pointer crash.