# Unit 3 - Lesson 22 - Error in Program - Help - CSD

**URL:** <https://forum.code.org/t/unit-3-lesson-22-error-in-program-help-csd/26258>\
**Category:** Unit and Lesson Discussion\
**Tags:** unit-3\
**Created:** [April 10, 2019, 4:45pm UTC](https://forum.code.org/t/unit-3-lesson-22-error-in-program-help-csd/26258 "2019-04-10T16:45:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hstein](https://avatars.discourse-cdn.com/v4/letter/h/4da419/32.png) [@hstein](https://forum.code.org/u/hstein)\
**Post date:** [April 10, 2019, 4:45pm UTC](https://forum.code.org/t/unit-3-lesson-22-error-in-program-help-csd/26258/1 "2019-04-10T16:45:13Z")

</div>

My student is working on her game in CSD, Unit 3, Lesson 22. She keeps getting an error - ERROR: Line: 39: TypeError: Cannot read property ‘copy’ of null.

I am stuck and can not figure it out. I remixed her game and I am sharing the link.

> **[Check out what I made](https://studio.code.org/projects/gamelab/O23Gx07hD_UBl1YWs_SZJhaLuBzWrjxIEB88xoQRrr4)**
>
> I wrote the code myself with Code.org

---

<div class="post-metadata">

**Author:** ![josh](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/josh/32/868_2.png) [@josh](https://forum.code.org/u/josh)\
**Post date:** [April 15, 2019, 4:22am UTC](https://forum.code.org/t/unit-3-lesson-22-error-in-program-help-csd/26258/2 "2019-04-15T04:22:55Z")

</div>

That’s a strange one, and I don’t see anything in this program that should be causing that error. I’m going to pass this along to our engineers and see if they’ve got any ideas.

---

<div class="post-metadata">

**Author:** ![mike](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mike/32/5229_2.png) [@mike](https://forum.code.org/u/mike)\
**Post date:** [April 15, 2019, 1:09pm UTC](https://forum.code.org/t/unit-3-lesson-22-error-in-program-help-csd/26258/3 "2019-04-15T13:09:28Z")

</div>

Line 11 is the problem: `elf.setCollider("point");`

I think that because the collider is being set to “point”. I’d suggest removing this line of code or keeping the collider as a rectangle or circle.  
[https://docs.code.org/gamelab/setCollider/](https://docs.code.org/gamelab/setCollider/)

---

<div class="post-metadata">

**Author:** ![hstein](https://avatars.discourse-cdn.com/v4/letter/h/4da419/32.png) [@hstein](https://forum.code.org/u/hstein)\
**Post date:** [April 15, 2019, 6:35pm UTC](https://forum.code.org/t/unit-3-lesson-22-error-in-program-help-csd/26258/4 "2019-04-15T18:35:20Z")

</div>

Thanks Josh and Mike. The setCollider was the issue. My student is eternally grateful!!!
