Maybe add a cast to your get ControlledPawn or GetOwner call
In c++ it occurs when you call a method that is declare but not defined. The method exist for your given class but it does nothing, your method should provide a String as output but you won t receive it and it causes your script to crash.
It compiles but would not run