# Why my GetTableRowNames failed?

**URL:** <https://forums.unrealengine.com/t/why-my-gettablerownames-failed/627748>\
**Category:** C++\
**Tags:** UE4-20, unreal-engine, UE4, question, CPP\
**Created:** [August 13, 2022, 3:37pm UTC](https://forums.unrealengine.com/t/why-my-gettablerownames-failed/627748 "2022-08-13T15:37:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Alexa.Ki](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alexa.ki/32/562753_2.png) [@Alexa.Ki](https://forums.unrealengine.com/u/Alexa.Ki)\
**Post date:** [August 13, 2022, 4:05pm UTC](https://forums.unrealengine.com/t/why-my-gettablerownames-failed/627748/3 "2022-08-13T16:05:18Z")

</div>

yes I have it as `TArray<FName> rownames`

> [@herb64](#):
>
> If so, this is already an array, you do not really need to check for ‘if (rownames)’. A check for the array size could be done, I added this below: ‘rownames.Num()’. But it is not needed, as the iteration in the for loop will handle this.

if i don’t check it for nullptr, the editor just crashed with error [Array has changed during ranged-for iteration!](https://forums.unrealengine.com/t/array-has-changed-during-ranged-for-iteration/627369) …

---

_[View the full topic](https://forums.unrealengine.com/t/why-my-gettablerownames-failed/627748)._
