jQuery in Action, 3rd edition
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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Are you certain that "myprovider" is not null? If it isn't, what happens in the getAddress method? Any chance of null object there?
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Exception in getting the address in JTAPI
 
It's not a secret anymore!