Program: 184047
Project: 184047
Buggy source:
@Override protected Dialog onCreateDialog(int id){
switch (id) {
case R.string.import_from_sim:
case R.string.import_from_sdcard:
{
      return AccountSelectionUtil.getSelectAccountDialog(this,id);
    }
case R.id.dialog_sdcard_not_found:
{
    return new AlertDialog.Builder(this).setTitle(R.string.no_sdcard_title).setIcon(android.R.drawable.ic_dialog_alert).setMessage(R.string.no_sdcard_message).setPositiveButton(android.R.string.ok,null).create();
  }
case R.id.dialog_delete_contact_confirmation:
{
  return new AlertDialog.Builder(this).setTitle(R.string.deleteConfirmation_title).setIcon(android.R.drawable.ic_dialog_alert).setMessage(R.string.deleteConfirmation).setNegativeButton(android.R.string.cancel,null).setPositiveButton(android.R.string.ok,new DeleteClickListener(mSelectedContactUri)).create();
}
case R.id.dialog_readonly_contact_hide_confirmation:
{
return new AlertDialog.Builder(this).setTitle(R.string.deleteConfirmation_title).setIcon(android.R.drawable.ic_dialog_alert).setMessage(R.string.readOnlyContactWarning).setNegativeButton(android.R.string.cancel,null).setPositiveButton(android.R.string.ok,new DeleteClickListener(mSelectedContactUri)).create();
}
case R.id.dialog_readonly_contact_delete_confirmation:
{
return new AlertDialog.Builder(this).setTitle(R.string.deleteConfirmation_title).setIcon(android.R.drawable.ic_dialog_alert).setMessage(R.string.readOnlyContactDeleteConfirmation).setNegativeButton(android.R.string.cancel,null).setPositiveButton(android.R.string.ok,new DeleteClickListener(mSelectedContactUri)).create();
}
case R.id.dialog_multiple_contact_delete_confirmation:
{
return new AlertDialog.Builder(this).setTitle(R.string.deleteConfirmation_title).setIcon(android.R.drawable.ic_dialog_alert).setMessage(R.string.multipleContactDeleteConfirmation).setNegativeButton(android.R.string.cancel,null).setPositiveButton(android.R.string.ok,new DeleteClickListener(mSelectedContactUri)).create();
}
}
return super.onCreateDialog(id);
}

Fixed version (ground truth):
@Override protected Dialog onCreateDialog(int id){
switch (id) {
case R.string.import_from_sim:
case R.string.import_from_sdcard:
{
      return AccountSelectionUtil.getSelectAccountDialog(this,id);
    }
case R.id.dialog_sdcard_not_found:
{
    return new AlertDialog.Builder(this).setTitle(R.string.no_sdcard_title).setIcon(android.R.drawable.ic_dialog_alert).setMessage(R.string.no_sdcard_message).setPositiveButton(android.R.string.ok,null).create();
  }
case R.id.dialog_delete_contact_confirmation:
{
  return new AlertDialog.Builder(this).setTitle(R.string.deleteConfirmation_title).setIcon(android.R.drawable.ic_dialog_alert).setMessage(R.string.deleteConfirmation).setNegativeButton(android.R.string.cancel,null).setPositiveButton(android.R.string.ok,new DeleteClickListener()).create();
}
case R.id.dialog_readonly_contact_hide_confirmation:
{
return new AlertDialog.Builder(this).setTitle(R.string.deleteConfirmation_title).setIcon(android.R.drawable.ic_dialog_alert).setMessage(R.string.readOnlyContactWarning).setNegativeButton(android.R.string.cancel,null).setPositiveButton(android.R.string.ok,new DeleteClickListener()).create();
}
case R.id.dialog_readonly_contact_delete_confirmation:
{
return new AlertDialog.Builder(this).setTitle(R.string.deleteConfirmation_title).setIcon(android.R.drawable.ic_dialog_alert).setMessage(R.string.readOnlyContactDeleteConfirmation).setNegativeButton(android.R.string.cancel,null).setPositiveButton(android.R.string.ok,new DeleteClickListener()).create();
}
case R.id.dialog_multiple_contact_delete_confirmation:
{
return new AlertDialog.Builder(this).setTitle(R.string.deleteConfirmation_title).setIcon(android.R.drawable.ic_dialog_alert).setMessage(R.string.multipleContactDeleteConfirmation).setNegativeButton(android.R.string.cancel,null).setPositiveButton(android.R.string.ok,new DeleteClickListener()).create();
}
}
return super.onCreateDialog(id);
}