View Single Post
Old 03-16-2010, 01:57 AM   #1 (permalink)
bb_develop
New Member
 
Join Date: Feb 2010
Model: Storm
PIN: N/A
Carrier: AT&T
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Help In Handling Null Pointer Exception !!

Please Login to Remove!

Hi..

I am trying to push a screen on clicking a menu item. I have add the menu in the constructor and its properly instantiated. The screen to be pushed is also present in the project. But when i click on the menu. It throws a NULL POINTER EXCEPTION. When i debug the project it opens a Vertical Field Manger window and says no source found. What could be the reason ?? Please help..

The simple code for the menu item is as shown.


private final class AddContact extends MenuItem
{
private AddContact()
{
super("Add Contact" , 10000, 30);
}
public void run()
{
UiApplication.getUiApplication().pushModalScreen(n ew AddContactScreen());
}
}
Offline   Reply With Quote