Object reference not set to an instance of an object

So I have this script that looks at the ground and says, “heay ground do you have Fricion?” and most of the time its all like, “You know I do dog.” But some times it is like “Nope whats that.”

In case of the latter the script is all like, warning warning.
Object reference not set to an instance of an object.
But I want it to be like “that’s cool what evsss.”

how do I make it not give out an error when looking for the attached script.

this is how I am calling the script.

transform.GetComponent(Colliding2).StandingOn.GetComponent(Properties);

Your speech is off-putting and very confusing. Proper English may help in this situation. Seems you need to check if the instance is null, possibly something like:

if (TheGameObjectOrComponentYourTryingToAccess != null)
{
	transform.GetComponent(Colliding2).StandingOn.GetComponent(Properties);
}
else
{
	Debug.Log("There is no Instance for this GameObject or Component);
}

Not sure if this will work because you have not given a snippet of code or the line of error; so I don’t know what Object (GameObject or Component) is not referenced.