# I get error when I execute my script - TypeError: Cannot read properties of null (reading '0')

**URL:** <https://community.postman.com/t/i-get-error-when-i-execute-my-script-typeerror-cannot-read-properties-of-null-reading-0/40230>\
**Category:** Help Hub\
**Tags:** tests, variables\
**Created:** [October 19, 2022, 1:24pm UTC](https://community.postman.com/t/i-get-error-when-i-execute-my-script-typeerror-cannot-read-properties-of-null-reading-0/40230 "2022-10-19T13:24:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![telecoms-meteorolog4](https://avatars.discourse-cdn.com/v4/letter/t/e9a140/32.png) [@telecoms-meteorolog4](https://community.postman.com/u/telecoms-meteorolog4)\
**Post date:** [October 19, 2022, 1:24pm UTC](https://community.postman.com/t/i-get-error-when-i-execute-my-script-typeerror-cannot-read-properties-of-null-reading-0/40230/1 "2022-10-19T13:24:57Z")

</div>

Please suggest the issue if error is — TypeError: Cannot read properties of null (reading ‘0’)

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [October 19, 2022, 3:52pm UTC](https://community.postman.com/t/i-get-error-when-i-execute-my-script-typeerror-cannot-read-properties-of-null-reading-0/40230/2 "2022-10-19T15:52:34Z")

</div>

You probably have a variable that hasn’t been set correctly.

However, please read the FAQ on how to post a question which will advise to include screenshots.

Include the request and response, plus any code you have written in the tests tab, as well as any results you have logged to the console.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [August 23, 2023, 3:03pm UTC](https://community.postman.com/t/i-get-error-when-i-execute-my-script-typeerror-cannot-read-properties-of-null-reading-0/40230/3 "2023-08-23T15:03:00Z")

</div>

Closed on August 23, 2023, 3:03pm UTC


