How do i fix my NullReferenceExeption error?

Hey, im very new to the system and writing scripts and whatnot. I have been watching videos to try and learn the ropes though. I made a script and when i went to play the game one error came up, it was a Nullreferenceexception error. Ive tried alot to fix it but nothings working. Heres the error... NullReferenceException Move Around.Update () (at Assets\Move Around.js:19)

and heres the line the error is on...

  var bullit = Instantiate(bullitPrefab, GameObject.Find("spawnPoint").transform.position, Quaternion.identity);

Im stuck, please help me on how to fix this error Smile

Possibly the Find didn't find anything. One way to check, is to move it to a separate line. Also check that your Prefab exists. You have to drag/drop a Prefab to the variable in the Editor (and sometimes I've managed to lose things like scripts :)

var tmpObj = GameObject.Find("spawnPoint");
if (tmpObj == null)
if (bullitPrefab == null)
    Debug.Log("missing Prefab");
var bullit = Instantiate(bullitPrefab, tmpObj.transform.position, Quaternion.identity);