Program: 24915
Project: 24915
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_map);
  this.mMarkerFactory=new MarkerFactory();
  this.mContentResolver=getContentResolver();
  this.mApplication=(EventORamaApplication)getApplication();
  this.mMapView=(MapView)findViewById(R.id.mapview);
  List<Overlay> mapOverlays=mMapView.getOverlays();
  this.mUserOverlay=new UsersOverlay(getResources().getDrawable(R.drawable.cross));
  mapOverlays.add(mUserOverlay);
  SharedPreferences settings=getSharedPreferences(PREFS_NAME,Context.MODE_PRIVATE);
  if (!settings.contains(PREF_LAT_KEY)) {
    mlastLocationFinder=mApplication.getLastLocationFinder(getBaseContext());
    mlastLocationFinder.setChangedLocationListener(oneShotLocationUpdateListener);
    Location bestEffortLocation=mlastLocationFinder.getLastBestLocation(10,System.currentTimeMillis() - 15 * 1000);
    if (bestEffortLocation != null)     updateMap(bestEffortLocation);
  }
  this.mMapView.setBuiltInZoomControls(true);
  ImageView nav_events=(ImageView)findViewById(R.id.nav_events);
  nav_events.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      Intent intent=new Intent(mContext,EventStreamActivity.class);
      intent.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
      startActivity(intent);
    }
  }
);
  ImageView nav_people=(ImageView)findViewById(R.id.nav_people);
  nav_people.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      Intent intent=new Intent(mContext,PeopleActivity.class);
      intent.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
      startActivity(intent);
    }
  }
);
  ImageView nav_location=(ImageView)findViewById(R.id.nav_location);
  nav_location.setSelected(true);
  nav_location.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
    }
  }
);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_map);
  this.mMarkerFactory=new MarkerFactory();
  this.mContentResolver=getContentResolver();
  this.mApplication=(EventORamaApplication)getApplication();
  this.mMapView=(MapView)findViewById(R.id.mapview);
  List<Overlay> mapOverlays=mMapView.getOverlays();
  this.mUserOverlay=new UsersOverlay(getResources().getDrawable(R.drawable.map_marker));
  mapOverlays.add(mUserOverlay);
  SharedPreferences settings=getSharedPreferences(PREFS_NAME,Context.MODE_PRIVATE);
  if (!settings.contains(PREF_LAT_KEY)) {
    mlastLocationFinder=mApplication.getLastLocationFinder(getBaseContext());
    mlastLocationFinder.setChangedLocationListener(oneShotLocationUpdateListener);
    Location bestEffortLocation=mlastLocationFinder.getLastBestLocation(10,System.currentTimeMillis() - 15 * 1000);
    if (bestEffortLocation != null)     updateMap(bestEffortLocation);
  }
  this.mMapView.setBuiltInZoomControls(true);
  ImageView nav_events=(ImageView)findViewById(R.id.nav_events);
  nav_events.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      Intent intent=new Intent(mContext,EventStreamActivity.class);
      intent.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
      startActivity(intent);
    }
  }
);
  ImageView nav_people=(ImageView)findViewById(R.id.nav_people);
  nav_people.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      Intent intent=new Intent(mContext,PeopleActivity.class);
      intent.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
      startActivity(intent);
    }
  }
);
  ImageView nav_location=(ImageView)findViewById(R.id.nav_location);
  nav_location.setSelected(true);
  nav_location.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
    }
  }
);
}