# AttributeSet build in PlayerState Constract but being nullptr outside 

**URL:** <https://forums.unrealengine.com/t/attributeset-build-in-playerstate-constract-but-being-nullptr-outside/2448134>\
**Category:** C++\
**Tags:** unreal-engine, crash, CPP, question\
**Created:** [April 9, 2025, 1:11pm UTC](https://forums.unrealengine.com/t/attributeset-build-in-playerstate-constract-but-being-nullptr-outside/2448134 "2025-04-09T13:11:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![3183284a7e224197a1a9975af990e8d7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3183284a7e224197a1a9975af990e8d7](https://forums.unrealengine.com/u/3183284a7e224197a1a9975af990e8d7)\
**Post date:** [April 9, 2025, 1:11pm UTC](https://forums.unrealengine.com/t/attributeset-build-in-playerstate-constract-but-being-nullptr-outside/2448134/1 "2025-04-09T13:11:58Z")

</div>

ue5.3 and ue5.5 both failed

 ![3a449f5c-ade7-447b-a824-c62bbfe2d6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/a/2cafb284da8891b42c5b4e924adcd41442e5882e.png)  
 ![f4d7b6d8-703d-4bf8-b496-9ef82396623c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/8/988b4445c83a219295749d49d18b726976992c7d.png)

---

<div class="post-metadata">

**Author:** ![JonathanBengoa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JonathanBengoa](https://forums.unrealengine.com/u/JonathanBengoa)\
**Post date:** [April 9, 2025, 1:53pm UTC](https://forums.unrealengine.com/t/attributeset-build-in-playerstate-constract-but-being-nullptr-outside/2448134/2 "2025-04-09T13:53:05Z")

</div>

Hey @3183284a7e224197a1a9975af990e8d7

Did you tried to create a new blueprint from the playerstate?  
Some times the if you have a blueprint child and you add/modify components not work correctly.

Quick question why are you using the “this” below the create defaultsubobject?

---

<div class="post-metadata">

**Author:** ![3183284a7e224197a1a9975af990e8d7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3183284a7e224197a1a9975af990e8d7](https://forums.unrealengine.com/u/3183284a7e224197a1a9975af990e8d7)\
**Post date:** [April 10, 2025, 7:09am UTC](https://forums.unrealengine.com/t/attributeset-build-in-playerstate-constract-but-being-nullptr-outside/2448134/3 "2025-04-10T07:09:52Z")

</div>

Yes,I create a new blueprint child to set some variables.

The “this” is used to see if the construct is successful when debugging. 😂

---

<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:** [May 10, 2025, 7:10am UTC](https://forums.unrealengine.com/t/attributeset-build-in-playerstate-constract-but-being-nullptr-outside/2448134/4 "2025-05-10T07:10:49Z")

</div>

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