# Help w/ a null error

**URL:** <https://forum.kirupa.com/t/help-w-a-null-error/242279>\
**Category:** Uncategorized\
**Created:** [October 24, 2007, 12:01pm UTC](https://forum.kirupa.com/t/help-w-a-null-error/242279 "2007-10-24T12:01:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![la\_Swear](https://avatars.discourse-cdn.com/v4/letter/l/ecae2f/32.png) [@la\_Swear](https://forum.kirupa.com/u/la_Swear)\
**Post date:** [October 24, 2007, 12:01pm UTC](https://forum.kirupa.com/t/help-w-a-null-error/242279/1 "2007-10-24T12:01:03Z")

</div>

greetings,

another newbie question…

I am trying to use a drag n drop function to place a word in a correct spot.

once the word is dragged to this spot I want the movie to go to the “correct” frame.

it works, but I get this error message about “void and null”

here’s the code

```auto
    if (Ego.hitTestObject(hitSpot)) {
        gotoAndPlay("egoCorrect");

```

[LIST]  
[_] **Ego** is the MC I’m dragging  
[_] **hitSpot** is the area I’m dragging it too  
[\*] **egoCorrect** is where it’s supposed to goto once the collision happens[/LIST]thank you!
