Create Widget Node not returning a value for a reference variable.

I have been working on a survival game in Unreal 4.22.3 and I have set up a UI Widget That contains the UI for the needs etc. Hunger Bar, Thirst, But when I create it in the Player character BP I get the return value from the create widget node and use it to set a reference variable but in other parts of the Character BP where I reference this variable output into the message log that it “Accessed none trying to read property NeedHudRef”

The Survival game is supposed to be a multiplayer game. The error doesn’t arise when I run it without a dedicated server with one client but when I run it with two clients or a dedicated server the error persists. I would like to know why this happens and how to fix it.