Object Reference not set to instance of object

Here’s the code

using UnityEngine;
using System.Collections;

public class NPCComponent : MonoBehaviour {
	
	public NPCHealthHandler nph;
	public NPCStats nps;
	public NPCCollisionHandler npch;
	
	// Use this for initialization
	void Start () {
		nph.GetComponent<NPCHealthHandler>();
		nps.GetComponent<NPCStats>();
		npch.GetComponent<NPCCollisionHandler>();
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}

errors pulling on the line npch.GetComponent();

It seems like you didnt set npch in your inspector.

Other than that, why are you serching for those components if you never save the reference?

Fixed it, was using GetComponent instead of AddComponent, because I was feeling stupid.