UUserWidget::GetOwningPlayer() returning null

After my UUserWidget has been initialized, calling GetOwningPlayer() results in a nullptr. This works perfectly fine everywhere else in my code except this one class.

	processorWidget = CreateWidget<URoMProcessorWidget>(controller, processorTemplate);
	processorWidget->initProcessor(processor);

Here is the error I receive in UnrealEd: “Error Unable to create a widget outered to a null player controller.”

update #1: I think it has to do with the way I am initializing my widgets.

1 Like

Moved my calls GetOwningPlayer() to NativeConstruct() and everything works perfect.