# Error: "Attempt to get length of null array"

**URL:** <https://forum.getodk.org/t/error-attempt-to-get-length-of-null-array/19737>\
**Category:** Support\
**Created:** [May 9, 2019, 5:55am UTC](https://forum.getodk.org/t/error-attempt-to-get-length-of-null-array/19737 "2019-05-09T05:55:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oscar\_Orlando](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/oscar_orlando/32/7003_2.png) [@Oscar\_Orlando](https://forum.getodk.org/u/Oscar_Orlando)\
**Post date:** [May 9, 2019, 5:55am UTC](https://forum.getodk.org/t/error-attempt-to-get-length-of-null-array/19737/1 "2019-05-09T05:55:00Z")

</div>

**1. What is the problem? Be very detailed.**

When a saved form has been edited and then saved, appears the message "...: Attempt  
to get length of null array". I'm working with at least 75 different users and only one user has reported this problem twice.

**2. What app or server are you using and on what device and operating system? Include version numbers.**

I'm using Google App Engine and Collect v. 1.19

**3. What you have you tried to fix the problem?**  
Reinstall the app collect.

**4. What steps can we take to reproduce the problem?**  
The errors have occurred when using Vysor complement for chrome. Only 2 times not always.

**5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.**

 ![42](https://getodk.b-cdn.net/uploads/default/original/2X/d/d020827ac38eef0fa22a94ce589ca15a68f9d0cf.jpeg) ![42](https://getodk.b-cdn.net/uploads/default/original/2X/d/d020827ac38eef0fa22a94ce589ca15a68f9d0cf.jpeg)

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [May 9, 2019, 2:16pm UTC](https://forum.getodk.org/t/error-attempt-to-get-length-of-null-array/19737/2 "2019-05-09T14:16:45Z")

</div>

Does this problem also happen on the latest version of Collect (currently v1.12.2)?

---

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [May 9, 2019, 5:57pm UTC](https://forum.getodk.org/t/error-attempt-to-get-length-of-null-array/19737/3 "2019-05-09T17:57:20Z")

</div>

That's a good question. I'm not sure but i guess it might have something to do with new line chars in form name. I was working on that issue (new line chars) some time ago and this error seems similar so I think it can be already fixed. If not please attach your form.

---

<div class="post-metadata">

**Author:** ![Oscar\_Orlando](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/oscar_orlando/32/7003_2.png) [@Oscar\_Orlando](https://forum.getodk.org/u/Oscar_Orlando)\
**Post date:** [May 11, 2019, 3:09am UTC](https://forum.getodk.org/t/error-attempt-to-get-length-of-null-array/19737/4 "2019-05-11T03:09:17Z")

</div>

> [@Grzesiek2010](#):
>
> orking on that issue (new line chars) some time ago and this error seems similar so I think it can be already fixed. If not please attach your form.

I asked to reinstall the app, so if it happens again it's gonna be with the latest version. I'll be expecting.
