NullReferenceException: Object reference not set to an instance of an object

Hey guys I was testing out my own version of a groundcheck using box colliders and this warning came up in the console. Can you guys tell me what it means?

NullReferenceException: Object reference not set to an instance of an object

It means that there is a variable who’s value is null. Check that you have dropped and dragged all objects to the variable slot in the inspector. And make sure if it is not a primitive (string, int, byte, bool etc.) that you instantiate it. example:

List myList = new List ();

Car redCar = new Car();

Class classname = new Class ();