What is a NullReferenceException and how do I fix it?
What is a NullReferenceException and how do I fix it?
I have some code and when it executes, it throws a NullReferenceException, saying, “Object reference not set to an instance of an object.”
What does this mean, and what can I do about it?
Best Answer What is the cause? Bottom Line
You are trying to use something that is null (or Nothing in VB.NET). This means you either set it to null, or you never set it to anything at all.
Like anything…
View On WordPress













