Program: 25202
Project: 25202
Buggy source:
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  DialogInterface.OnClickListener clickHandler=new DialogInterface.OnClickListener(){
    @Override public void onClick(    DialogInterface dialog,    int which){
switch (which) {
case DialogInterface.BUTTON_POSITIVE:
{
          Intent intent=new Intent(getBaseContext(),Preferences.class);
          startActivity(intent);
          break;
        }
case DialogInterface.BUTTON_NEGATIVE:
{
        break;
      }
  }
}
}
;
DebugLog.writeActivity(DebugType.DT_INFO,"String_Node_Str");
setContentView(R.layout.main);
DebugLog.writeActivity(DebugType.DT_INFO,"String_Node_Str");
setting=Settings.readPreferences(this);
updatedBtnIcon=this.getResources().getDrawable(R.drawable.updated);
notUpdatedBtnIcon=this.getResources().getDrawable(R.drawable.notupdated);
updatedBtnIcon.setBounds(0,0,32,32);
notUpdatedBtnIcon.setBounds(0,0,32,32);
if (setting.getMail() == "String_Node_Str" || setting.getApiKey() == "String_Node_Str") {
AlertDialog.Builder dlg=new AlertDialog.Builder(this);
dlg.setMessage("String_Node_Str");
dlg.setPositiveButton("String_Node_Str",clickHandler);
dlg.setNegativeButton("String_Node_Str",clickHandler);
dlg.show();
}
 else {
DebugLog.writeActivity(DebugType.DT_INFO,"String_Node_Str");
DebugLog.writeActivity(DebugType.DT_DEBUG,"String_Node_Str",Helper.maskString(setting.getMail(),'*',StringMaskOption.MASK_HEAD,45),Helper.maskString(setting.getApiKey(),'*',StringMaskOption.MASK_MIDDLE,25));
DebugLog.writeActivity(DebugType.DT_DEBUG,"String_Node_Str",setting.getCommitEnableStatus());
gatorObject=new Eksigator(this,setting);
sharedGatorObject=gatorObject;
btnToggleListType=(Button)findViewById(R.id.btnToggleListType);
btnToggleListType.setCompoundDrawables(notUpdatedBtnIcon,null,null,null);
btnToggleListType.setOnClickListener(new OnClickListener(){
  @Override public void onClick(  View v){
    String buttonText;
    Drawable butIcon;
    onlySwapList=true;
    isUnreadsActive=!isUnreadsActive;
    if (loadTitles()) {
      if (isUnreadsActive) {
        butIcon=notUpdatedBtnIcon;
        buttonText="String_Node_Str";
      }
 else {
        butIcon=updatedBtnIcon;
        buttonText="String_Node_Str";
      }
      btnToggleListType.setCompoundDrawables(butIcon,null,null,null);
      btnToggleListType.setText(buttonText);
    }
 else     isUnreadsActive=!isUnreadsActive;
  }
}
);
partedList=new PartedTitleListContainer();
if (!Helper.checkServiceIsRunning(this)) {
  serviceIntent=new Intent(this,ListStateUpdaterService.class);
  Bundle servIoBundle=new Bundle();
  serviceIntent.putExtras(servIoBundle);
  startService(serviceIntent);
}
 else {
  DebugLog.writeActivity(DebugType.DT_INFO,"String_Node_Str");
  serviceIntent=new Intent("String_Node_Str");
}
startLoadTitlesWorker("String_Node_Str");
}
}

Fixed version (ground truth):
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  DialogInterface.OnClickListener clickHandler=new DialogInterface.OnClickListener(){
    @Override public void onClick(    DialogInterface dialog,    int which){
switch (which) {
case DialogInterface.BUTTON_POSITIVE:
{
          Intent intent=new Intent(getBaseContext(),Preferences.class);
          startActivity(intent);
          break;
        }
case DialogInterface.BUTTON_NEGATIVE:
{
        closeApp();
        break;
      }
  }
}
}
;
DebugLog.writeActivity(DebugType.DT_INFO,"String_Node_Str");
setContentView(R.layout.main);
DebugLog.writeActivity(DebugType.DT_INFO,"String_Node_Str");
setting=Settings.readPreferences(this);
updatedBtnIcon=this.getResources().getDrawable(R.drawable.updated);
notUpdatedBtnIcon=this.getResources().getDrawable(R.drawable.notupdated);
updatedBtnIcon.setBounds(0,0,32,32);
notUpdatedBtnIcon.setBounds(0,0,32,32);
if (setting.getMail() == "String_Node_Str" || setting.getApiKey() == "String_Node_Str") {
AlertDialog.Builder dlg=new AlertDialog.Builder(this);
dlg.setMessage("String_Node_Str");
dlg.setPositiveButton("String_Node_Str",clickHandler);
dlg.setNegativeButton("String_Node_Str",clickHandler);
dlg.show();
}
 else {
DebugLog.writeActivity(DebugType.DT_INFO,"String_Node_Str");
DebugLog.writeActivity(DebugType.DT_DEBUG,"String_Node_Str",Helper.maskString(setting.getMail(),'*',StringMaskOption.MASK_HEAD,45),Helper.maskString(setting.getApiKey(),'*',StringMaskOption.MASK_MIDDLE,25));
DebugLog.writeActivity(DebugType.DT_DEBUG,"String_Node_Str",setting.getCommitEnableStatus());
gatorObject=new Eksigator(this,setting);
sharedGatorObject=gatorObject;
btnToggleListType=(Button)findViewById(R.id.btnToggleListType);
btnToggleListType.setCompoundDrawables(notUpdatedBtnIcon,null,null,null);
btnToggleListType.setOnClickListener(new OnClickListener(){
  @Override public void onClick(  View v){
    String buttonText;
    Drawable butIcon;
    onlySwapList=true;
    isUnreadsActive=!isUnreadsActive;
    if (loadTitles()) {
      if (isUnreadsActive) {
        butIcon=notUpdatedBtnIcon;
        buttonText="String_Node_Str";
      }
 else {
        butIcon=updatedBtnIcon;
        buttonText="String_Node_Str";
      }
      btnToggleListType.setCompoundDrawables(butIcon,null,null,null);
      btnToggleListType.setText(buttonText);
    }
 else     isUnreadsActive=!isUnreadsActive;
  }
}
);
partedList=new PartedTitleListContainer();
if (!Helper.checkServiceIsRunning(this)) {
  serviceIntent=new Intent(this,ListStateUpdaterService.class);
  Bundle servIoBundle=new Bundle();
  serviceIntent.putExtras(servIoBundle);
  startService(serviceIntent);
}
 else {
  DebugLog.writeActivity(DebugType.DT_INFO,"String_Node_Str");
  serviceIntent=new Intent("String_Node_Str");
}
startLoadTitlesWorker("String_Node_Str");
}
}