# Crash TextData is nullptr when UMG TextWidget is bound

**URL:** <https://forums.unrealengine.com/t/crash-textdata-is-nullptr-when-umg-textwidget-is-bound/367788>\
**Category:** UI\
**Tags:** text, crash-editor, unreal-engine, bug-report, question, UMG\
**Created:** [August 21, 2016, 4:26am UTC](https://forums.unrealengine.com/t/crash-textdata-is-nullptr-when-umg-textwidget-is-bound/367788 "2016-08-21T04:26:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Callipark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Callipark](https://forums.unrealengine.com/u/Callipark)\
**Post date:** [August 21, 2016, 4:26am UTC](https://forums.unrealengine.com/t/crash-textdata-is-nullptr-when-umg-textwidget-is-bound/367788/1 "2016-08-21T04:26:26Z")

</div>

## **Repro Project Download:**

[https://drive.google.com/open?id=0B3cNp4c6stYIQ2E2Yng5MGE4SUE](https://drive.google.com/open?id=0B3cNp4c6stYIQ2E2Yng5MGE4SUE)

## **Issue**

When adding a custom Widget class to an existing vertical widget box editor will crash with the error “this-\>TextData.Object was nullptr” if a certain text widget is bound and the resulting bound function modifies the text in any way. Crash will not occur if text is not manipulated in the bound UMG ‘get’ function.

## **Call Stack**

From production project, not repro project

> <https://pastebin.com/63THDBBw>

## **Steps to Reproduce**

Using provided repro project

1. Open ReproWorld map (should open by default) and ensure “ReproGameMode” is the default overridden GameMode (should be by default).
2. Play-in-editor, press Shift+F1 to gain a mouse cursor, press the “~TEST CRASH~” button.
3. Observe project will **NOT** crash, and will display a chat item in the vertical box to the right of the screen.
4. Stop PIE and open GUI/ChatTextContainer UMG Widget.
5. Select the TwitchChat\_NameBadge Text Widget under Overlay\>[Horizontal Box]
6. Bind the Text value to “Get\_TwitchChat\_NameBadge\_Text\_0”
7. Return to main editor and repeat step 2
8. Observe editor crash

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [August 22, 2016, 3:28pm UTC](https://forums.unrealengine.com/t/crash-textdata-is-nullptr-when-umg-textwidget-is-bound/367788/2 "2016-08-22T15:28:38Z")

</div>

Hello

I was able to reproduce this issue and narrow it down further. I have written up a report and I have submitted it to the developers for further consideration. I have also provided a link to the public tracker. Please feel free to use the link provided for future updates. Thank you for your time and information.

Link: [Unreal Engine Issues and Bug Tracker (UE-35037)](https://issues.unrealengine.com/issue/UE-35037)

As a note: The issues seems to be cause by using the “Get Text” node to set the binding for the text that is being referenced by the get text node.

Make it a great day

---

<div class="post-metadata">

**Author:** ![Callipark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Callipark](https://forums.unrealengine.com/u/Callipark)\
**Post date:** [September 7, 2016, 9:46pm UTC](https://forums.unrealengine.com/t/crash-textdata-is-nullptr-when-umg-textwidget-is-bound/367788/3 "2016-09-07T21:46:54Z")

</div>

Hey,

As the issue tracker has this crashed marked as “Won’t Fix” can I get an elaboration as to why?

I understand this is easily worked around by not referencing text in the bound function, I’m simply curious.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [September 8, 2016, 7:37pm UTC](https://forums.unrealengine.com/t/crash-textdata-is-nullptr-when-umg-textwidget-is-bound/367788/4 "2016-09-08T19:37:05Z")

</div>

As noted above this appears to be a circular reference issue. This does not appear to be the desired work flow for this type of set up.
