Creating umg widget error (Master Branch as of 2 days ago)

I’m trying to create a UMG widget inside a custom AActor blueprint. When I do i get the following error in the editor

Error Unable to create a widget outered to a null world.

I don’t know if its something that I did wrong or just a bug in the current build.

Is Get Player Controller returning null? Run it through an Is Valid check. If its not valid, your actor is being loaded before the player controller is, which means its not a good place to put anything UI wise in. If this is the case, set up your blueprint so that it tries to create UMG widgets after a player controller is found.

You were right the player controller isn’t valid were i was trying to create the widget