Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NULL Business Object
Message
From
14/06/2011 12:33:17
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
14/06/2011 11:09:57
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01514318
Message ID:
01514326
Views:
38
>I have a maintenance form with a business object "Location" and it works as expected.
>
>I have a second form that has many business objects including the "Location" business object.
>
>I have no issues with any of the business objects except the "Location" business object. When I run the form and call _location.GetAllData() the application throws a null reference error.
>
>*Declare business object
>Private _location As Location
>
>*Initialize business object
>Me._location = CType(Me.RegisterBizObj(New Location), Location)
>
>*Get all data
>Me._location.GetAllData()
>
>This works fine on my "LOcations" maintenance form, but not on my other form. Any help on this?
>
>Thanks.

Robert,

Put a break point on your initialization line and after it runs verify your _location object is not null. I can't tell from your message what is actually null. If your biz obj is not null, then you need to step into that line and find out what is null and what is causing the exception. What happens if you call a different method to get data in that biz obj? assuming the biz obj isn't the null object.
Timothy
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform