# Solved - Accessed None trying to read property... that I know is valid.

**URL:** <https://forums.unrealengine.com/t/solved-accessed-none-trying-to-read-property-that-i-know-is-valid/154134>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [November 25, 2020, 2:47am UTC](https://forums.unrealengine.com/t/solved-accessed-none-trying-to-read-property-that-i-know-is-valid/154134 "2020-11-25T02:47:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![theBRNK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theBRNK](https://forums.unrealengine.com/u/theBRNK)\
**Post date:** [November 25, 2020, 2:47am UTC](https://forums.unrealengine.com/t/solved-accessed-none-trying-to-read-property-that-i-know-is-valid/154134/1 "2020-11-25T02:47:33Z")

</div>

Hai, noob here, because this makes NO sense to me and I feel like it should be relatively simple.

To explain screenshots, the first one is the error being thrown and the node which is pointed to. I have inserted “IsValid” nodes in place of the main menu variable and the loading progress variable, and both of them return as valid references, but when I plug them into the “set percent” node, it returns that error.

 ![Screenshot 2020-11-24 213933.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/d/edd0999b54a6323d11d424f0acd50777dff93fb6.png)](filedata/fetch?id=1835894&d=1606271998)

The weirdest thing to me is that this is the exact same variable used in second screenshot, and that one doesn’t throw the error.

 ![Screenshot 2020-11-24 214155.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/1/21925d8b1063ff542e08805cc5357874a49a5ccd.png)](filedata/fetch?id=1835895&d=1606272121)

This is in the same blueprint BEFORE the node that throws the error.

 ![Screenshot 2020-11-24 214425.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/2/a2b4fb0cd98b3424ee6c832b4033cb25e79cb0dd.png)](filedata/fetch?id=1835896&d=1606272272)

I went to the first instance where these events are called, and put a full one second delay on it firing, to be 100% sure that the main menu widget was loaded in before it fired, and it still throws the error. At this point I am suspicious that something is firing pre-emptively due to the event dispatchers loading in on BeginPlay, because even if I disconnect the execution pin for the series of dispatch binders, it still throws the error on test launch even though it compiles cleanly.

What am I missing here?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6d2c17e4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6d2c17e4](https://forums.unrealengine.com/u/anonymous_user_6d2c17e4)\
**Post date:** [November 25, 2020, 4:26am UTC](https://forums.unrealengine.com/t/solved-accessed-none-trying-to-read-property-that-i-know-is-valid/154134/2 "2020-11-25T04:26:47Z")

</div>

Try adding an isvalid node before error city. The delay is likely just postponing stuff that is going to fire preemptively regardless.

---

<div class="post-metadata">

**Author:** ![theBRNK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theBRNK](https://forums.unrealengine.com/u/theBRNK)\
**Post date:** [November 25, 2020, 7:41am UTC](https://forums.unrealengine.com/t/solved-accessed-none-trying-to-read-property-that-i-know-is-valid/154134/3 "2020-11-25T07:41:04Z")

</div>

Yeah, that is where I inserted the “is valid” nodes. Came back valid, but nodes after that returned the error anyway.

So if this returns the error regardless, how on earth do I set up the events with the variables so they actually let the program run?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 25, 2020, 8:49am UTC](https://forums.unrealengine.com/t/solved-accessed-none-trying-to-read-property-that-i-know-is-valid/154134/4 "2020-11-25T08:49:26Z")

</div>

Can you show a close up of where set the MainMenu ref? Or is MainMenu a user widget child of MyHud?

> [@](#):
>
> At this point I am suspicious that something is firing pre-emptively due to the event dispatchers loading in on BeginPlay, because even if I disconnect the execution pin for the series of dispatch binders, it still throws the error on test launch even though it compiles cleanly.

If this is true, then the Output log should show your where it tries to access none.

---

<div class="post-metadata">

**Author:** ![theBRNK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theBRNK](https://forums.unrealengine.com/u/theBRNK)\
**Post date:** [November 25, 2020, 12:48pm UTC](https://forums.unrealengine.com/t/solved-accessed-none-trying-to-read-property-that-i-know-is-valid/154134/5 "2020-11-25T12:48:32Z")

</div>

“is main menu a user child widget of MyHud” - pretty sure it isn’t, though I am not sure if there is a way to manually set it so/if that helps.

Sorry, not at PC for closer screenshot, but the reference is set on sequence output 1, it’s the first three nodes. Construct main menu -\> set as variable -\> add to viewport.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 25, 2020, 1:00pm UTC](https://forums.unrealengine.com/t/solved-accessed-none-trying-to-read-property-that-i-know-is-valid/154134/6 "2020-11-25T13:00:45Z")

</div>

> [@theBRNK](#):
>
> “is main menu a user child widget of MyHud” - pretty sure it isn’t, though I am not sure if there is a way to manually set it so/if that helps.
> 
> Sorry, not at PC for closer screenshot, but the reference is set on sequence output 1, it’s the first three nodes. Construct main menu -\> set as variable -\> add to viewport.

Makes sense.

> [@](#):
>
> because even if I disconnect the execution pin for the series of dispatch binders, it still throws the error on test launch even though it compiles cleanly.

If you’re seeing access none errors while not using _those_ dispatchers, the issue is elsewhere - as in, not in visible in the screenshots.

---

<div class="post-metadata">

**Author:** ![theBRNK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theBRNK](https://forums.unrealengine.com/u/theBRNK)\
**Post date:** [November 25, 2020, 1:52pm UTC](https://forums.unrealengine.com/t/solved-accessed-none-trying-to-read-property-that-i-know-is-valid/154134/7 "2020-11-25T13:52:05Z")

</div>

I’m not doubting/saying you are wrong, but then why would the error log point to this series of nodes specifically? I have an error for every one of the nodes in those events marked “error city”, and all of them are the same. “Accessed none” at main menu. I am back at PC now, gonna glance over the things with fresh eyes and see if I missed something stupid.

---

<div class="post-metadata">

**Author:** ![theBRNK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theBRNK](https://forums.unrealengine.com/u/theBRNK)\
**Post date:** [November 25, 2020, 2:13pm UTC](https://forums.unrealengine.com/t/solved-accessed-none-trying-to-read-property-that-i-know-is-valid/154134/8 "2020-11-25T14:13:22Z")

</div>

Ok, I disconnected all of the nodes in the level that call the events bound in that section, and it stopped throwing the error… My absolutely noob assessment is that the level loads before the UI, and the engine is hunting those references at launch before they can be assigned if they are connected in any way. So… I’mma just build the initial launch in the UI itself and see how that goes.

---

<div class="post-metadata">

**Author:** ![theBRNK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theBRNK](https://forums.unrealengine.com/u/theBRNK)\
**Post date:** [November 25, 2020, 3:37pm UTC](https://forums.unrealengine.com/t/solved-accessed-none-trying-to-read-property-that-i-know-is-valid/154134/9 "2020-11-25T15:37:53Z")

</div>

Solved it — You need to create the bindings BEFORE constructing any widget that references the bindings. Derp. This one works, where I just insert the binding in front of the construct node.

 ![Screenshot 2020-11-25 103548.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/c/bc28e6f0032c43b325c168497738b78190e41aa9.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 25, 2020, 4:21pm UTC](https://forums.unrealengine.com/t/solved-accessed-none-trying-to-read-property-that-i-know-is-valid/154134/10 "2020-11-25T16:21:21Z")

</div>

> [@theBRNK](#):
>
> Solved it — You need to create the bindings BEFORE constructing any widget that references the bindings. Derp. This one works, where I just insert the binding in front of the construct node.
> 
> ![Screenshot 2020-11-25 103548.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/c/bc28e6f0032c43b325c168497738b78190e41aa9.png)](filedata/fetch?id=1836128&d=1606318667)

This makes little sense. You generally want to do this:

 ![bind.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/c/1ccad83d541d95cb8ab1310ce9023ec7e19a40c7.jpeg)

Below, binding to non-existing widget is asking for trouble. This does not work, and it shouldn’t:

 ![nope.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/1/51abee76b35e51c08ceafaeb445909c1e6de60da.jpeg)

But perhaps I misunderstood what you’re attempting to achieve, seeing how the bind targets \*Self \*in your image. Binding to self makes even less sense as children dispatcher calls are available directly (for widgets that are not created dynamically, that is):

 ![Screenshot 2020-11-25 161906.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/9/e9796f198821327d85ea2b3b648831b0b0c0f119.jpeg)

But again, I might be missing the point here completely…

---

<div class="post-metadata">

**Author:** ![theBRNK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theBRNK](https://forums.unrealengine.com/u/theBRNK)\
**Post date:** [November 25, 2020, 11:34pm UTC](https://forums.unrealengine.com/t/solved-accessed-none-trying-to-read-property-that-i-know-is-valid/154134/11 "2020-11-25T23:34:40Z")

</div>

Sorry, should have clarified, the events are in the HUD blueprint, and the widget calls them. They have to be bound before the widget is constructed, because (as far as I can tell) even though it doesn’t fire them, the widget checks it’s components and doesn’t see any event it can call on construct and throws the error.
