Object reference not set to an instance of an object
It's a generic error which occurs when you are having any uninitialized or null valued object for which you are going to apply any operations. That's why It is considered as Exception of kind
NullReferenceException
.
To overcome this error always check '
Null
' on the object before any operation done on it.
You could have more clarity with NullReferenceException with
THIS[
^] article.
Please
vote and
Accept Answer if it Helped.