# Trying to fix this error...

**URL:** <https://forums.unrealengine.com/t/trying-to-fix-this-error/1200474>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [June 15, 2023, 7:40pm UTC](https://forums.unrealengine.com/t/trying-to-fix-this-error/1200474 "2023-06-15T19:40:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![JBrooks020](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JBrooks020](https://forums.unrealengine.com/u/JBrooks020)\
**Post date:** [June 15, 2023, 7:40pm UTC](https://forums.unrealengine.com/t/trying-to-fix-this-error/1200474/1 "2023-06-15T19:40:50Z")

</div>

Blueprint Runtime Error: “Accessed None trying to read property PlayerCharacter BP”. Node: Set Percent Graph: Increase Stamina Function: Increase Stamina Blueprint: BPC\_PlayerStats

---

<div class="post-metadata">

**Author:** ![NikitaAksenov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NikitaAksenov](https://forums.unrealengine.com/u/NikitaAksenov)\
**Post date:** [June 16, 2023, 8:10am UTC](https://forums.unrealengine.com/t/trying-to-fix-this-error/1200474/2 "2023-06-16T08:10:45Z")

</div>

Hi!

As you can see in the error text, you’re trying to read property of PlayerCharacter BP while it’s not set to anything. You need to assign something to it prior to accessng it.  
If you are assigning it, then you probably trying to access too early (or assigning it too late).

Can you, please, provide your blueprints where this error occures and where you assign your PlayerCharacter BP?

---

<div class="post-metadata">

**Author:** ![JBrooks020](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JBrooks020](https://forums.unrealengine.com/u/JBrooks020)\
**Post date:** [June 16, 2023, 8:35am UTC](https://forums.unrealengine.com/t/trying-to-fix-this-error/1200474/3 "2023-06-16T08:35:06Z")

</div>

Hey!

Thank you so much for you’re reply! 🙂 These are my blueprints i think the problem lays.

 ![Scherm­afbeelding 2023-06-16 om 10.30.24](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/4/a/04af662434d2e3b0d0fead44c01a11ae024a7b20.png)  
 ![Scherm­afbeelding 2023-06-16 om 10.30.50](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/c/b0c21b72d706756101b42f00628a446a26f4eb98.png)  
 ![Scherm­afbeelding 2023-06-16 om 10.34.03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/c/62cbd0b24d383b936084bf3bd36938536360d1f2.png)

---

<div class="post-metadata">

**Author:** ![NikitaAksenov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NikitaAksenov](https://forums.unrealengine.com/u/NikitaAksenov)\
**Post date:** [June 16, 2023, 8:45am UTC](https://forums.unrealengine.com/t/trying-to-fix-this-error/1200474/4 "2023-06-16T08:45:36Z")

</div>

Blueprint that sets player character seems fine to me.

Error also says about “Increase Stamina” function. I suppose, it looks the same as “Decrease Stamina” that you’ve posted?

When do you call “Increase Stamina” function? Assuming that “Decrease Stamina” and “Increase Stamina” work similarly, then error text tells about this logic part:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/7/a175f933f87e74778e94fbb61e45f738a53d3d7c.png)

Seems like that this function is being called too early.

---

<div class="post-metadata">

**Author:** ![JBrooks020](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JBrooks020](https://forums.unrealengine.com/u/JBrooks020)\
**Post date:** [June 16, 2023, 9:03am UTC](https://forums.unrealengine.com/t/trying-to-fix-this-error/1200474/5 "2023-06-16T09:03:26Z")

</div>

How can I fix this? Sorry I am following a tutorial, so i wouldn’t know how to do this.

---

<div class="post-metadata">

**Author:** ![NikitaAksenov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NikitaAksenov](https://forums.unrealengine.com/u/NikitaAksenov)\
**Post date:** [June 16, 2023, 9:05am UTC](https://forums.unrealengine.com/t/trying-to-fix-this-error/1200474/6 "2023-06-16T09:05:32Z")

</div>

I think of two ways

1. Add checking for valid PlayerCharacter BP inside “_Decrease Stamina_” and “_Increase Stamina_” (you can use **IsValid** node for that).
2. Look where this function being called and understand why PlayerCharacter BP is not set at the moment they are called.

Also, what tutorial you are following, maybe we can look for problem there.

---

<div class="post-metadata">

**Author:** ![JBrooks020](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JBrooks020](https://forums.unrealengine.com/u/JBrooks020)\
**Post date:** [June 16, 2023, 9:08am UTC](https://forums.unrealengine.com/t/trying-to-fix-this-error/1200474/7 "2023-06-16T09:08:18Z")

</div>

Thank you so much, i have been following this tutorial series.

https://www.youtube.com/embed/7P4U5wmONKI?feature=oembed&wmode=opaque&list=PLiSlOaRBfgkcPAhYpGps16PT_9f28amXi

After episode 6 (near the end) I got the error.

---

<div class="post-metadata">

**Author:** ![NikitaAksenov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NikitaAksenov](https://forums.unrealengine.com/u/NikitaAksenov)\
**Post date:** [June 16, 2023, 9:21am UTC](https://forums.unrealengine.com/t/trying-to-fix-this-error/1200474/8 "2023-06-16T09:21:37Z")

</div>

Can you, please, show logic at “ **Tick** ” of your “_BP\_ThirdPersonCharacter_”?

---

<div class="post-metadata">

**Author:** ![JBrooks020](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JBrooks020](https://forums.unrealengine.com/u/JBrooks020)\
**Post date:** [June 16, 2023, 9:23am UTC](https://forums.unrealengine.com/t/trying-to-fix-this-error/1200474/9 "2023-06-16T09:23:47Z")

</div>

You Mean this?

 ![Scherm­afbeelding 2023-06-16 om 11.23.18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/6/8966a9355007d4b6458459164579510b6f5cf16c.png)

---

<div class="post-metadata">

**Author:** ![NikitaAksenov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NikitaAksenov](https://forums.unrealengine.com/u/NikitaAksenov)\
**Post date:** [June 16, 2023, 9:28am UTC](https://forums.unrealengine.com/t/trying-to-fix-this-error/1200474/10 "2023-06-16T09:28:06Z")

</div>

Yes, this.

Can you increase delay from 0.1 to 1.0 and check, if it helps?

---

<div class="post-metadata">

**Author:** ![JBrooks020](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JBrooks020](https://forums.unrealengine.com/u/JBrooks020)\
**Post date:** [June 16, 2023, 10:43am UTC](https://forums.unrealengine.com/t/trying-to-fix-this-error/1200474/11 "2023-06-16T10:43:57Z")

</div>

Omg This worked! Thank you so much, no errors anymore.  
It only showed this:

LogPackageName: Warning: DoesPackageExist called on PackageName that will always return false. Reason: Input ‘’ was empty.

But that didn’t show as an error so i think all is good now 🙂

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 16, 2023, 10:44am UTC](https://forums.unrealengine.com/t/trying-to-fix-this-error/1200474/12 "2023-07-16T10:44:29Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
