Probably post the stack trace or run it with the debugger, it is possible GetWorld() returns null and you are using it without a check
Probably post the stack trace or run it with the debugger, it is possible GetWorld() returns null and you are using it without a check