# Array Length breaks editor

**URL:** <https://forums.unrealengine.com/t/array-length-breaks-editor/600895>\
**Category:** Feedback & Requests\
**Tags:** unreal-engine, UE5-0, bug-report, Blueprint\
**Created:** [July 9, 2022, 9:47am UTC](https://forums.unrealengine.com/t/array-length-breaks-editor/600895 "2022-07-09T09:47:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![infoloren](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/infoloren/32/491706_2.png) [@infoloren](https://forums.unrealengine.com/u/infoloren)\
**Post date:** [July 9, 2022, 9:47am UTC](https://forums.unrealengine.com/t/array-length-breaks-editor/600895/1 "2022-07-09T09:47:05Z")

</div>

Hello, I was developing using the Unreal Engine 5 editor and by some reason when I try to get the length of my array, the whole editor broke.

> **[Gyazo](https://gyazo.com/fee75a796cd64e845cda7f35790e261c)**
>
> Easily capture screenshots, GIFs, and replays that are ready to share. Download the free app for windows and mac.

> **[Gyazo](https://gyazo.com/facab5f4d13bedacef9a98c354606369)**
>
> Easily capture screenshots, GIFs, and replays that are ready to share. Download the free app for windows and mac.

Lucky me I was able to delete the bug element using CTRL + A and I got my editor working again.

Really afraid of what will happen to someone that for some reason decides to forget the last part of the code that was added.

Tried:

- Change the variable name ( Didn’t work)
- Change the variable type ( Didn’t work)
- Get Length in another part of the blueprint ( Worked )

Using a function to get the length of my arrays is a working solution

Implementation code:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/c/0aca9377347a2b4a98fe3654a4a086cd7724d551.png)

Function code:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/7/1970ddae6acabd29cf7f4d819fb511e747757ce4.png)
