Program: 162160
Project: 162160
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  Log.v(TAG,"String_Node_Str");
  setContentView(R.layout.activity_configuration);
  sSelectAgency=(Button)findViewById(R.id.sSelectAgency);
  sSelectRoute=(Button)findViewById(R.id.sSelectRoute);
  sSelectStop=(Button)findViewById(R.id.sSelectStop);
  bReset=(Button)findViewById(R.id.bReset);
  bMakeWidget=(Button)findViewById(R.id.bMakeWidget);
  tvHelpMessage=(TextView)findViewById(R.id.tvHelp);
  rlPreview=(RelativeLayout)findViewById(R.id.rlPreview);
  tvMinsPreview=(TextView)findViewById(R.id.tvMins_preview);
  tvRemainingTimePreview=(TextView)findViewById(R.id.tvRemainingTime_preview);
  tvRoutePreview=(TextView)findViewById(R.id.tvRoute_preview);
  tvStopPreview=(TextView)findViewById(R.id.tvStop_preview);
  settings=PreferenceManager.getDefaultSharedPreferences(getBaseContext());
  editor=settings.edit();
  setResult(RESULT_CANCELED);
  DateTime currentTime=new DateTime(System.currentTimeMillis());
  Log.v(TAG,"String_Node_Str" + currentTime.getDayOfWeek());
  Log.v(TAG,"String_Node_Str" + currentTime.getHourOfDay());
  if (currentTime.getDayOfWeek() > 5 || currentTime.getHourOfDay() > 18 || currentTime.getHourOfDay() < 6) {
    Log.v(TAG,"String_Node_Str");
    Utils.showAlertDialog(WidgetConfigurationActivity.this,"String_Node_Str","String_Node_Str");
  }
  new PopulateAgenciesTask().execute();
  OnClickListener setResetClickedListener=new OnClickListener(){
    @Override public void onClick(    View v){
      doReset();
    }
  }
;
  OnClickListener setMakeWidgetClickedListener=new OnClickListener(){
    @Override public void onClick(    View v){
      doMakeWidget();
    }
  }
;
  OnClickListener setHelpClickedListener=new OnClickListener(){
    @Override public void onClick(    View view){
      Utils.showAlertDialog(WidgetConfigurationActivity.this,"String_Node_Str",getString(R.string.help_dialog));
    }
  }
;
  OnClickListener setPreviewClickedListener=new OnClickListener(){
    @Override public void onClick(    View view){
      Intent intent=new Intent(WidgetConfigurationActivity.this,CustomizeWidgetActivity.class);
      intent.putExtra("String_Node_Str",mAppWidgetId);
      startActivity(intent);
    }
  }
;
  Intent intent=getIntent();
  Bundle extras=intent.getExtras();
  if (extras != null) {
    mAppWidgetId=extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID,AppWidgetManager.INVALID_APPWIDGET_ID);
  }
  bReset.setOnClickListener(setResetClickedListener);
  bMakeWidget.setOnClickListener(setMakeWidgetClickedListener);
  tvHelpMessage.setOnClickListener(setHelpClickedListener);
  rlPreview.setOnClickListener(setPreviewClickedListener);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  Log.v(TAG,"String_Node_Str");
  setContentView(R.layout.activity_configuration);
  sSelectAgency=(Button)findViewById(R.id.sSelectAgency);
  sSelectRoute=(Button)findViewById(R.id.sSelectRoute);
  sSelectStop=(Button)findViewById(R.id.sSelectStop);
  bReset=(Button)findViewById(R.id.bReset);
  bMakeWidget=(Button)findViewById(R.id.bMakeWidget);
  tvHelpMessage=(TextView)findViewById(R.id.tvHelp);
  rlPreview=(RelativeLayout)findViewById(R.id.rlPreview);
  tvMinsPreview=(TextView)findViewById(R.id.tvMins_preview);
  tvRemainingTimePreview=(TextView)findViewById(R.id.tvRemainingTime_preview);
  tvRoutePreview=(TextView)findViewById(R.id.tvRoute_preview);
  tvStopPreview=(TextView)findViewById(R.id.tvStop_preview);
  settings=PreferenceManager.getDefaultSharedPreferences(getBaseContext());
  editor=settings.edit();
  setResult(RESULT_CANCELED);
  DateTime currentTime=new DateTime(System.currentTimeMillis());
  Log.v(TAG,"String_Node_Str" + currentTime.getDayOfWeek());
  Log.v(TAG,"String_Node_Str" + currentTime.getHourOfDay());
  if (currentTime.getDayOfWeek() > 5 || currentTime.getHourOfDay() > 18 || currentTime.getHourOfDay() < 6) {
    Log.v(TAG,"String_Node_Str");
    Utils.showAlertDialog(WidgetConfigurationActivity.this,"String_Node_Str","String_Node_Str");
  }
  new PopulateAgenciesTask().execute();
  OnClickListener setResetClickedListener=new OnClickListener(){
    @Override public void onClick(    View v){
      doReset(0);
    }
  }
;
  OnClickListener setMakeWidgetClickedListener=new OnClickListener(){
    @Override public void onClick(    View v){
      doMakeWidget();
    }
  }
;
  OnClickListener setHelpClickedListener=new OnClickListener(){
    @Override public void onClick(    View view){
      Utils.showAlertDialog(WidgetConfigurationActivity.this,"String_Node_Str",getString(R.string.help_dialog));
    }
  }
;
  OnClickListener setPreviewClickedListener=new OnClickListener(){
    @Override public void onClick(    View view){
      Intent intent=new Intent(WidgetConfigurationActivity.this,CustomizeWidgetActivity.class);
      intent.putExtra("String_Node_Str",mAppWidgetId);
      startActivity(intent);
    }
  }
;
  Intent intent=getIntent();
  Bundle extras=intent.getExtras();
  if (extras != null) {
    mAppWidgetId=extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID,AppWidgetManager.INVALID_APPWIDGET_ID);
  }
  bReset.setOnClickListener(setResetClickedListener);
  bMakeWidget.setOnClickListener(setMakeWidgetClickedListener);
  tvHelpMessage.setOnClickListener(setHelpClickedListener);
  rlPreview.setOnClickListener(setPreviewClickedListener);
}