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.
posted 12 years ago
Are you certain that "myprovider" is not null? If it isn't, what happens in the getAddress method? Any chance of null object there?