Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NULL Business Object
Message
From
14/06/2011 15:10:20
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
14/06/2011 13:30:07
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01514318
Message ID:
01514357
Views:
32
>Hello.
>
>I regenerated the business object. The business object still works on my "Maintenance" form, but still doesn't work on my other form. It throws a "NULLReferenceException was unhandled" on me._location.GetAllData().
>
>When I look at me._location.DataSet it contains all of the data in in my "Locations" table as expected. The business object isn't null, but it continues to throw this exception.
>
>Any help on this?
>
>Thanks.


Robert,
Are you calling the same method on your business object to retrieve data in both forms? If not, then I suggest stepping into the method you are calling that doesn't work and find out which line of code in the business object is giving you the error. This will help in narrowing it down. If you are calling the same method, then can you post the code from both forms like you did earlier so we can see what is different?
Timothy
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform