Object reference not set to an instance of an object

Ask general questions here.
Karlsruhe87
Posts: 8
Joined: Wed Apr 08, 2015 12:26 pm

Object reference not set to an instance of an object

Post by Karlsruhe87 » Fri Apr 10, 2015 11:47 am

In my actual work I should modify an existing textcase in some way.

Starting on this I made a copy of the testcase and tried to get it work - but whenever I start the Testplan it aborts with the message "Object reference not set to an instance of an object" (just in german). Since I know the Usercode in use works (that testcase runs every day) I guess my mistake is somewhere else - but where?

From Testcase.cs:

Code: Select all

Starting_Run_Application(varTestName, varFile);
In Data Binding, I connected the two variables to a certain row in the Data Source (Range) and the Modul Variables to Data Columns. Whatelse could cause the problem?

CookieMonster
Certified Professional
Certified Professional
Posts: 74
Joined: Mon Aug 14, 2006 7:17 pm
Location: CH

Re: Object reference not set to an instance of an object

Post by CookieMonster » Fri Apr 10, 2015 12:18 pm

Hi Karlsruhe87,

Could you please describe more in detail what you have done, may it helps also, if you post the stack trace. Try to use the debugger. Set a break point on this method and step through, and check where it crash's.
May,because you copied around some code you forgot somewhere to instantiate an object or somewhere your /or variable is null.

Cheers
Dan