Get Player Controller / Return NULL in 4.17

Hi, I Convert my project 4.16 to 4.17 and When Start Pie i receive this error in my function when i Add Widget to Player Screen…

LogScriptCore: Error: Script Msg: A null object was passed as a world context object to UEngine::GetWorldFromContextObject().

There seems to be a change to the function library’s way of getting the world’s context. A few of my functions are also throwing this error after upgrading from 4.16 > 4.17.

Are you also using a function library for this function?

You might want to use Get Owning Player.

This has been fixed for 4.17.2.

I’m also having this problem and am using a function library.