Help w/ a null error

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

    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!