Hi :)
I am getting the following exception on my unit tests:
System.NullReferenceException: Object reference not set to an instance of an object..
Does anyone know how to possibly solve this problem?
Thanks
Hi :)
I am getting the following exception on my unit tests:
System.NullReferenceException: Object reference not set to an instance of an object..
Does anyone know how to possibly solve this problem?
Thanks
Do you have a line of code where the exception is occurring to show everyone?
this means that you declared a variable but you didnt assign any value to it, in other words you didnt initialize it. when you try to use a declared variable without initializing it, it complains that you try to use something which is not created yet. that happens a lot when you start c#.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.