I have the lat and longs for certain airports and I'm trying to map them. I pass the lat and long to a method with the following Java code:
ArrayOfLocation loc = findService.getLocationInfo(myLatLong, dataSource, gio);
Location locations = loc.getLocation();
Location myLocation = locations;
For most of the airports it works fine, but for some it throws an NullPointerException at the last line. It seems as though the web service doesn't find the location at all. When I go to About.com and do a mappoint search using the lat and long the map comes for them with no problem.
Can it have something to do with my using staging urls for testing? If not, does anyone have any possible solutions?