Programming problem...

Post » Tue May 15, 2012 6:34 am

Spoiler
			Dim PID As Integer = TestUtils.GetPID(MERGE_A_Forename, MERGE_A_Surname, MERGE_A_DOB)			Assert.Greater(PID, 0, "P ID not returned from saved p as expected")			Dim mergeHlpr As New MergeTestHelper			Dim reportHlpr As New ResultTestsHelper			_service.UserCredentials.Token = _token			Dim findResultInfo As FindResultCriteria = New FindResultCriteria			findResultInfo.PID = Convert.ToString(PID)						Dim findInfo As FindMerge = mergeHlpr.BuildMergeCriteria()			findInfo.PrimaryPId = PID.ToString			Dim reply As FindMergeResponse = _service.FindMerge(findInfo)			For Each mergeItem As FindMergeItem In reply.P				Dim Detail As GetP = mergeHlpr.BuildGetCriteria()				Detail.PID = mergeItem.PrimaryID			Next			Dim serviceObj As New ServicesPort			Dim findResp As FindResultResponse = _service.FindResult(findResultInfo)			reportHlpr.GetResultForReportID(CStr(Merge_A_TestReportID), _token, serviceObj)

So I run the above test and I get the most annoying error message ever; "Object reference not set to an instance of an object".
I've had to deal with this before and usually have after sometime, but now I'm looking at a brickwall as everything there is doing something, as far as I can tell and brings back the results I need.
Any suggestions on how to fix this test?


- Fixed it, for anyone that's remotely interested it was the last line;
"reportHlpr.GetResultForReportID(CStr(Merge_A_TestReportID), _token, serviceObj)"
That was the problem :rolleyes:
User avatar
Red Sauce
 
Posts: 3431
Joined: Fri Aug 04, 2006 1:35 pm

Post » Tue May 15, 2012 5:50 am

You should ask in the http://www.gamesas.com/topic/1322056-unofficial-ponygramming-thread-iv/ :P
User avatar
Joie Perez
 
Posts: 3410
Joined: Fri Sep 15, 2006 3:25 pm

Post » Tue May 15, 2012 6:43 am

I would have, and I did look, but because of the daft "Pony"gramming I could find it in the search <_<
User avatar
Andrea P
 
Posts: 3400
Joined: Mon Feb 12, 2007 7:45 am

Post » Mon May 14, 2012 11:20 pm

Did you try debugging or looking at the callstack?
User avatar
Stephanie Nieves
 
Posts: 3407
Joined: Mon Apr 02, 2007 10:52 pm

Post » Mon May 14, 2012 7:27 pm

Did you try debugging or looking at the callstack?
Yeah, but because of the way VB or VS2005 work it was just skipping the error and telling me at the end.
Found out what the problem was anyway
User avatar
El Khatiri
 
Posts: 3568
Joined: Sat Sep 01, 2007 2:43 am


Return to Othor Games