Please Help (Java Coding)

NullReferenceException: Object reference not set to an instance of an object
ammoDisplayerHub.Update () (at Assets/Scripts/ammoDisplayerHub.js:9)

Is the Error!

And

#pragma strict
import UnityEngine.UI;

var ammoCounter : Text;
var ammoCount : int = 0;

function Start ()
{
	//ammoCounter = GetComponent.<Text>().ammoCounter;
}

function Update ()
{
	ammoCounter.text 
}

function setAmmo ()
{
	Debug.Log("Yup!");
}

is the coding

Well, you currently have the line to instantiate the object commented out, for one. The object is never instantiated, so it doesn’t exist to be referenced.