Hi friends ,
i go through this code .
im not able to find the problem, just fix it and tell .how to get the point of interests
in the j2me ..wtk.


class PointOfInterest implements Runnable{
PointOfInterest(){
}
public void run(){
try{
// Set criteria for selecting a location provider:
// accurate to 500 meters horizontally
Criteria cr= new Criteria();
cr.setHorizontalAccuracy(500);
// Get an instance of the provider
LocationProvider lp= LocationProvider.getInstance(cr);
// Request the location, setting a one-minute timeout
Location l = lp.getLocation(60);

//Coordinates
Coordinates c = l.getQualifiedCoordinates();
if(c != null ) {
// Use coordinate information
double lat = c.getLatitude();
double lon = c.getLongitude();
try{
StringBuffer sb=new StringBuffer();
sb.append(l);
String loc;
loc=sb.toString();
lm = LandmarkStore.getInstance(loc);
menuActive = false;
clearScreen();
repaint();
}catch (NullPointerException npe){
npe.printStackTrace();
}
if((lm)!=null ){ vLandmarks=lm.getLandmarks();
}
}
}catch(Exception e){
System.out.println("Exception:"+e);
}
}