Assigned variable with a GameObject.. but it's null?

I have a script accepting a

public GameObject mouseImage;

and I do have it assigned in Unity, and then when I access it, it throws the lovely NullReferenceException (my favorite one by far). I am not accessing the GameObject on the first frame or even near the beginning so I know it’s not me accessing it before its created. I even tried forcing it to

GameObject.Find("Mouse Image");

But even that still gave me null. I’ve checked everything I can think of, whether it’s the proper GameObject, or if I’m accessing it wrong, or even if I’m reading the error wrong, but no it is saying that the mouse image is null. I really don’t know whats going on.

The problem was because I was using

mouseImage.GetComponent<Image>().color

instead of

mouseImage.GetComponent<RawImage>().color

I was thinking about what I was dealing with. Just a silly overlook. My game object never contained an Image, but instead has a RawImage.