}
if (isGeoSearch){
//System.out.println("Trying to attach geo information:");
if (photoList != null){
GeoInterface g = photoInterface.getGeoInterface();
//Nullpointer error - bug in flickj library,
//photosForLocation return aber evtl nur eigene fotos!
// PhotoList fot = g.photosForLocation(new GeoData( new Float(48.7771056f).toString(), new Float(9.1807688f).toString(), new Integer(1).toString()), null, 5, 0);
// System.out.println("photosForLocation (location = stutgart mitte) returned fotos: " + fot.size());
//Go through all found fotos
for (int i = 0; i < photoList.size(); i++) {
Photo foto = (Photo) photoList.get(i);
//Add to result list
photos.add(foto);
String id = foto.getId();
try {
GeoData loc = g.getLocation(id);
if (loc != null){
foto.setGeoData(loc);
}
} catch (Exception e) {
System.err.println("Error fetching geodata for foto");