I was adding one of two WidgetBlueprints to the viewport and I found I was getting an error when placing a branch before choosing which widget to add. If I do the following, then I get no error, just a warning at comile. In the blueprint after, I get an error “Blueprint Runtime Error: “Accessed None trying to read property CallFunc_Create_ReturnValue_1”. Blueprint: Minimal_Default Function: Execute Ubergraph Minimal Default Graph: EventGraph Node: Add to Viewport”.
At one stage I tried checcking if the output from the widget was valid, and that the owning player was valid but that did not help.
The widgets display fine in both. This project is just a blank project in with 2 simple widgets with some text to demonstrate the issue.
Blueprint with error below
So why do I get an error when I have a branch?
Thanks in advance.