The answer is right there... You have an Object reference which is not set to an instance of an object...
To fix it assign an Object to the reference.
No one here can help you because you have not posted any code, but for a general idea consider the following.
Object obj = null;
obj.ToString();
Object obj = new Object();
obj.ToString();
By the way, the internet is full with this stuff. We get this question at least weekly.
Who would have thunk it?[
^]