Program: 43878
Project: 43878
Buggy source:
/** 
 * Called when the activity is first created. 
 */
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
  setContentView(R.layout.main);
  mMapView=(MapView)findViewById(R.id.mapview);
  mPopup=findViewById(R.id.map_popup);
  mPopup.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
    }
  }
);
  mMapView.setBuiltInZoomControls(false);
  mZoomControls=(ZoomControls)findViewById(R.id.zoom_controls);
  mZoomControls.setOnZoomInClickListener(mOnZoomIn);
  mZoomControls.setOnZoomOutClickListener(mOnZoomOut);
  mStopsController=new StopsController(this,this);
  mRouteOverlay=new RouteOverlay(this,mMapView);
  UIHelp.setChildClickable(this,R.id.show_arrival_info,mOnShowArrivals);
  UIHelp.setChildClickable(this,R.id.show_routes,mOnShowRoutes);
  Bundle bundle=getIntent().getExtras();
  if (bundle != null) {
    mFocusStopId=bundle.getString(FOCUS_STOP_ID);
    mapValuesFromBundle(bundle);
    mRouteOverlay.setRouteId(bundle.getString(ROUTE_ID),true);
  }
  if (savedInstanceState != null) {
    mFocusStopId=savedInstanceState.getString(FOCUS_STOP_ID);
    mShowRoutes=savedInstanceState.getBoolean(SHOW_ROUTES);
    mapValuesFromBundle(savedInstanceState);
    mRouteOverlay.setRouteId(savedInstanceState.getString(ROUTE_ID),false);
  }
  mStopsController.setNonConfigurationInstance(getLastNonConfigurationInstance());
  autoShowWhatsNew();
  UIHelp.checkAirplaneMode(this);
}

Fixed version (ground truth):
/** 
 * Called when the activity is first created. 
 */
@Override public void onCreate(Bundle savedInstanceState){
  boolean firstRun=firstRunCheck();
  super.onCreate(savedInstanceState);
  requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
  setContentView(R.layout.main);
  mMapView=(MapView)findViewById(R.id.mapview);
  mPopup=findViewById(R.id.map_popup);
  mPopup.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
    }
  }
);
  mMapView.setBuiltInZoomControls(false);
  mZoomControls=(ZoomControls)findViewById(R.id.zoom_controls);
  mZoomControls.setOnZoomInClickListener(mOnZoomIn);
  mZoomControls.setOnZoomOutClickListener(mOnZoomOut);
  mStopsController=new StopsController(this,this);
  mRouteOverlay=new RouteOverlay(this,mMapView);
  UIHelp.setChildClickable(this,R.id.show_arrival_info,mOnShowArrivals);
  UIHelp.setChildClickable(this,R.id.show_routes,mOnShowRoutes);
  Bundle bundle=getIntent().getExtras();
  if (bundle != null) {
    mFocusStopId=bundle.getString(FOCUS_STOP_ID);
    mapValuesFromBundle(bundle);
    mRouteOverlay.setRouteId(bundle.getString(ROUTE_ID),true);
  }
  if (savedInstanceState != null) {
    mFocusStopId=savedInstanceState.getString(FOCUS_STOP_ID);
    mShowRoutes=savedInstanceState.getBoolean(SHOW_ROUTES);
    mapValuesFromBundle(savedInstanceState);
    mRouteOverlay.setRouteId(savedInstanceState.getString(ROUTE_ID),false);
  }
  mStopsController.setNonConfigurationInstance(getLastNonConfigurationInstance());
  autoShowWhatsNew();
  UIHelp.checkAirplaneMode(this);
  if (firstRun) {
    firstRunSetLocation(mMapView.getController());
  }
}