What is a NullReferenceException
What is a NullReferenceException, and how do I fix it? The developer is using null intentionally to indicate there is no meaningful value available. Note that C# has the concept of null able datatypes for variables (like database tables can have nullable fields) - you can assign null to them to indicate there is no value stored in it,