Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception in getting the address in JTAPI

 
yspl india
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you certain that "myprovider" is not null? If it isn't, what happens in the getAddress method? Any chance of null object there?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic