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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 39547
    
  27
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 - updated with new look and Ping home screen widget
 
Don't get me started about those stupid light bulbs.
 
subject: Exception in getting the address in JTAPI
 
Similar Threads
how to get IP address in linux
format attribute in bean:write not working
validation
Not able to open links from JEditorPane
WA #1.....word association