Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Android Security Essentials Live Lessons this week in the Android 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

Exception in getting the address in JTAPI

yspl india

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,
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41124
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
Consider Paul's rocket mass heater.
subject: Exception in getting the address in JTAPI
Similar Threads
Not able to open links from JEditorPane
how to get IP address in linux
format attribute in bean:write not working
WA #1.....word association