aspose file tools*
The moose likes Java in General and the fly likes Exception in getting the address in JTAPI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Exception in getting the address in JTAPI " Watch "Exception in getting the address in JTAPI " New topic
Author

Exception in getting the address in JTAPI

yspl india
Greenhorn

Joined: Aug 08, 2005
Posts: 8
I am getting java.lang.NullPointerException in
Address adr = myprovider.getAddress("52317702");
where myprovider is an instance of Provider inteface.
5231702 is the phone no.
Please give a solution for this problem as my project gets struck here.


Thanks in advance,
J.Shobana.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42648
    
  65
Are you certain that "myprovider" is not null? If it isn't, what happens in the getAddress method? Any chance of null object there?


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception in getting the address in JTAPI