Program: 8450
Project: 8450
Buggy source:
@Override protected Dialog onCreateDialog(int id){
switch (id) {
case Id.dialog.new_account:
{
      AlertDialog.Builder alert=new AlertDialog.Builder(this);
      alert.setTitle("String_Node_Str");
      alert.setMessage("String_Node_Str");
      final EditText input=new EditText(this);
      alert.setView(input);
      alert.setPositiveButton(android.R.string.ok,new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int id){
          MainActivity.this.removeDialog(Id.dialog.new_account);
          String accountName="String_Node_Str" + input.getText();
          Cursor testCursor=managedQuery(Uri.parse("String_Node_Str" + accountName),null,null,null,null);
          if (testCursor == null) {
            Toast.makeText(MainActivity.this,"String_Node_Str" + accountName + "String_Node_Str",Toast.LENGTH_SHORT).show();
            return;
          }
          ContentValues values=new ContentValues();
          values.put(Accounts.NAME,accountName);
          try {
            MainActivity.this.getContentResolver().insert(Accounts.CONTENT_URI,values);
          }
 catch (          SQLException e) {
            Toast.makeText(MainActivity.this,"String_Node_Str" + accountName + "String_Node_Str",Toast.LENGTH_SHORT).show();
          }
        }
      }
);
      alert.setNegativeButton(android.R.string.cancel,new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int id){
          MainActivity.this.removeDialog(Id.dialog.new_account);
        }
      }
);
      return alert.create();
    }
case Id.dialog.about:
{
    AlertDialog.Builder alert=new AlertDialog.Builder(this);
    alert.setTitle("String_Node_Str" + Apg.FULL_VERSION);
    ScrollView scrollView=new ScrollView(this);
    TextView message=new TextView(this);
    SpannableString info=new SpannableString("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
    Linkify.addLinks(info,Linkify.WEB_URLS | Linkify.EMAIL_ADDRESSES);
    message.setMovementMethod(LinkMovementMethod.getInstance());
    message.setText(info);
    int padding=(int)(10 * getResources().getDisplayMetrics().densityDpi / 160);
    message.setPadding(padding,padding,padding,padding);
    message.setTextAppearance(this,android.R.style.TextAppearance_Medium);
    scrollView.addView(message);
    alert.setView(scrollView);
    alert.setPositiveButton(android.R.string.ok,new DialogInterface.OnClickListener(){
      public void onClick(      DialogInterface dialog,      int id){
        MainActivity.this.removeDialog(Id.dialog.about);
      }
    }
);
    return alert.create();
  }
case Id.dialog.change_log:
{
  AlertDialog.Builder alert=new AlertDialog.Builder(this);
  alert.setTitle("String_Node_Str" + Apg.FULL_VERSION);
  ScrollView scrollView=new ScrollView(this);
  TextView message=new TextView(this);
  SpannableString info=new SpannableString("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  message.setText(info);
  int padding=(int)(10 * getResources().getDisplayMetrics().densityDpi / 160);
  message.setPadding(padding,padding,padding,padding);
  message.setTextAppearance(this,android.R.style.TextAppearance_Medium);
  scrollView.addView(message);
  alert.setView(scrollView);
  alert.setCancelable(false);
  alert.setPositiveButton(android.R.string.ok,new DialogInterface.OnClickListener(){
    public void onClick(    DialogInterface dialog,    int id){
      MainActivity.this.removeDialog(Id.dialog.change_log);
      SharedPreferences prefs=getPreferences(MODE_PRIVATE);
      SharedPreferences.Editor editor=prefs.edit();
      editor.putBoolean(Constants.pref.has_seen_change_log,true);
      editor.commit();
    }
  }
);
  return alert.create();
}
default :
{
break;
}
}
return super.onCreateDialog(id);
}

Fixed version (ground truth):
@Override protected Dialog onCreateDialog(int id){
switch (id) {
case Id.dialog.new_account:
{
      AlertDialog.Builder alert=new AlertDialog.Builder(this);
      alert.setTitle("String_Node_Str");
      alert.setMessage("String_Node_Str");
      final EditText input=new EditText(this);
      alert.setView(input);
      alert.setPositiveButton(android.R.string.ok,new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int id){
          MainActivity.this.removeDialog(Id.dialog.new_account);
          String accountName="String_Node_Str" + input.getText();
          Cursor testCursor=managedQuery(Uri.parse("String_Node_Str" + accountName),null,null,null,null);
          if (testCursor == null) {
            Toast.makeText(MainActivity.this,"String_Node_Str" + accountName + "String_Node_Str",Toast.LENGTH_SHORT).show();
            return;
          }
          ContentValues values=new ContentValues();
          values.put(Accounts.NAME,accountName);
          try {
            MainActivity.this.getContentResolver().insert(Accounts.CONTENT_URI,values);
          }
 catch (          SQLException e) {
            Toast.makeText(MainActivity.this,"String_Node_Str" + accountName + "String_Node_Str",Toast.LENGTH_SHORT).show();
          }
        }
      }
);
      alert.setNegativeButton(android.R.string.cancel,new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int id){
          MainActivity.this.removeDialog(Id.dialog.new_account);
        }
      }
);
      return alert.create();
    }
case Id.dialog.about:
{
    AlertDialog.Builder alert=new AlertDialog.Builder(this);
    alert.setTitle("String_Node_Str" + Apg.FULL_VERSION);
    ScrollView scrollView=new ScrollView(this);
    TextView message=new TextView(this);
    SpannableString info=new SpannableString("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
    Linkify.addLinks(info,Linkify.WEB_URLS | Linkify.EMAIL_ADDRESSES);
    message.setMovementMethod(LinkMovementMethod.getInstance());
    message.setText(info);
    int padding=(int)(10 * getResources().getDisplayMetrics().densityDpi / 160);
    message.setPadding(padding,padding,padding,padding);
    message.setTextAppearance(this,android.R.style.TextAppearance_Medium);
    scrollView.addView(message);
    alert.setView(scrollView);
    alert.setPositiveButton(android.R.string.ok,new DialogInterface.OnClickListener(){
      public void onClick(      DialogInterface dialog,      int id){
        MainActivity.this.removeDialog(Id.dialog.about);
      }
    }
);
    return alert.create();
  }
case Id.dialog.change_log:
{
  AlertDialog.Builder alert=new AlertDialog.Builder(this);
  alert.setTitle("String_Node_Str" + Apg.FULL_VERSION);
  ScrollView scrollView=new ScrollView(this);
  TextView message=new TextView(this);
  SpannableString info=new SpannableString("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  message.setText(info);
  int padding=(int)(10 * getResources().getDisplayMetrics().densityDpi / 160);
  message.setPadding(padding,padding,padding,padding);
  message.setTextAppearance(this,android.R.style.TextAppearance_Medium);
  scrollView.addView(message);
  alert.setView(scrollView);
  alert.setCancelable(false);
  alert.setPositiveButton(android.R.string.ok,new DialogInterface.OnClickListener(){
    public void onClick(    DialogInterface dialog,    int id){
      MainActivity.this.removeDialog(Id.dialog.change_log);
      SharedPreferences prefs=getPreferences(MODE_PRIVATE);
      SharedPreferences.Editor editor=prefs.edit();
      editor.putBoolean(Constants.pref.has_seen_change_log,true);
      editor.commit();
    }
  }
);
  return alert.create();
}
default :
{
break;
}
}
return super.onCreateDialog(id);
}