# Accessed none trying to read

**URL:** <https://forums.unrealengine.com/t/accessed-none-trying-to-read/561148>\
**Category:** Blueprint\
**Tags:** unreal-engine, Widget, UE4, Blueprint\
**Created:** [May 19, 2022, 3:09pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read/561148 "2022-05-19T15:09:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PlainAndAverage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PlainAndAverage](https://forums.unrealengine.com/u/PlainAndAverage)\
**Post date:** [May 19, 2022, 3:09pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read/561148/1 "2022-05-19T15:09:19Z")

</div>

i have a timer that reads the minutes and seconds from a separate actor and shows them in a widget

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/1/bb19239f7a20273f40d5c1f5f98eba2badb2cbdf.png) (actor)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/8/89830fafe8982b11bc7a6d151f09c18ac3c7db16.png) (widget code, same for seconds)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/9/bc92f50d7f1eee64a443cbc96d6952932097b5ad.png) (reference to timer)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/f/a3f67af9c18b4c664ad77ae1353dcba395221842.png) (error)  
any reason why this is happening?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 19, 2022, 6:02pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read/561148/2 "2022-05-19T18:02:38Z")

</div>

Your timer ref is not pointing at anything.

---

<div class="post-metadata">

**Author:** ![PlainAndAverage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PlainAndAverage](https://forums.unrealengine.com/u/PlainAndAverage)\
**Post date:** [May 19, 2022, 6:13pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read/561148/3 "2022-05-19T18:13:35Z")

</div>

i’ve set the get all actors of class to my timer actor with the first script inside of it  
i followed a tutorial almost exactly (the only difference being i put my script in an actor whilst he upt it in his firstpersoncharacter) ([Countdown Timer | End Game Screen - Unreal Engine 4 Tutorial - YouTube](https://www.youtube.com/watch?v=nHK97x6ILYo))

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 19, 2022, 6:58pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read/561148/4 "2022-05-19T18:58:18Z")

</div>

How that error works is: click the word on the end of the line and it will take you to the node that’s getting the null reference.

( I know you know that ).

But the point is, it is null, no matter what you think 😉

So, I can see you setting it up there ( btw GetActorOfClass just gets one ). So it can only be one thing: there is no timer.

How can that be, right? Timing ( probably ). Try putting a delay in the construct event, and give the system enough time to create the timer actor ( if it’s a timing problem ).

Also ( unrelated ) here:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/1/1f1c243915d3b749c2a1754a52506f1f0e4232cd.png)

Putting a delay on tick has no effect. Tick is called every single frame. So if you put a delay of a second there, all you’re doing is holding off all the tick events for one second, and then you get all of them with no delays.

---

<div class="post-metadata">

**Author:** ![PlainAndAverage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PlainAndAverage](https://forums.unrealengine.com/u/PlainAndAverage)\
**Post date:** [May 19, 2022, 7:22pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read/561148/5 "2022-05-19T19:22:27Z")

</div>

putting a delay in the construct event didn’t work, no idea how the author got it to work

> Putting a delay on tick has no effect. Tick is called every single frame. So if you put a delay of a second there, all you’re doing is holding off all the tick events for one second, and then you get all of them with no delays.

that’s how the timer works, the delay is for the branches to update the minutes / seconds depending on their value every second (e.g if the seconds is set at 59, after the delay it will be set to 0 and the minutes will be set to 1 to signify a full minute passing)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 19, 2022, 7:24pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read/561148/6 "2022-05-19T19:24:03Z")

</div>

Ok, I see what you’re doing with the tick. Won’t work 😉

Better off with something like:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/1/551eb22c6b1cfc523c3ac81dd383e6e8d52a5874.png)

( I’m only doing the seconds here ). Or

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/1/3e1746c12b64d3b3b125a3b3444784d9ae63d250.png)

The system also has a specific DateTime variable type, it really depends what you want to do.
