Program: 54945
Project: 54945
Buggy source:
public EditBookmarkCategoryDialog(final Activity activity,final long categoryID){
  final LinearLayout ll_root=(LinearLayout)activity.getLayoutInflater().inflate(R.layout.edit_bookmark_category,null);
  final EditText et_name=(EditText)ll_root.findViewById(R.id.et_editBookmarkCategory_name);
  final EditText et_description=(EditText)ll_root.findViewById(R.id.et_editBookmarkCategory_description);
  if (categoryID >= 0) {
    Cursor cursor=activity.getContentResolver().query(ContentUris.withAppendedId(BookmarkCategories.CONTENT_URI,categoryID),null,null,new String[]{},null);
    cursor.moveToNext();
    et_name.setText(cursor.getString(cursor.getColumnIndex(BookmarkCategories.COLUMN_NAME_CATEGORY_NAME)));
    et_description.setText(cursor.getString(cursor.getColumnIndex(BookmarkCategories.COLUMN_NAME_DESCRIPTION)));
    cursor.close();
  }
 else {
    et_name.setText("String_Node_Str");
    et_description.setText("String_Node_Str");
  }
  dialog=new AlertDialog.Builder(activity).setTitle(categoryID < 0 ? "String_Node_Str" : "String_Node_Str").setView(ll_root).setNegativeButton("String_Node_Str",new DialogInterface.OnClickListener(){
    @Override public void onClick(    DialogInterface dialog,    int which){
    }
  }
).setPositiveButton(categoryID < 0 ? "String_Node_Str" : "String_Node_Str",new DialogInterface.OnClickListener(){
    @Override public void onClick(    DialogInterface dialog,    int which){
      String name=et_name.getText().toString();
      String comment=et_description.getText().toString();
      ContentValues values=new ContentValues();
      values.put(BookmarkCategories.COLUMN_NAME_CATEGORY_NAME,name);
      values.put(BookmarkCategories.COLUMN_NAME_DESCRIPTION,comment);
      if (categoryID >= 0)       activity.getContentResolver().update(ContentUris.withAppendedId(BookmarkCategories.CONTENT_URI,categoryID),values,null,null);
 else       activity.getContentResolver().insert(BookmarkCategories.CONTENT_URI,values);
      reloadCategories();
    }
  }
).create();
  dialog.show();
}

Fixed version (ground truth):
public EditBookmarkCategoryDialog(final Activity activity,final long categoryID){
  final LinearLayout ll_root=(LinearLayout)activity.getLayoutInflater().inflate(R.layout.edit_bookmark_category,null);
  final EditText et_name=(EditText)ll_root.findViewById(R.id.et_editBookmarkCategory_name);
  final EditText et_description=(EditText)ll_root.findViewById(R.id.et_editBookmarkCategory_description);
  if (categoryID >= 0) {
    Cursor cursor=activity.getContentResolver().query(ContentUris.withAppendedId(BookmarkCategories.CONTENT_URI,categoryID),null,null,new String[]{},null);
    cursor.moveToNext();
    et_name.setText(cursor.getString(cursor.getColumnIndex(BookmarkCategories.COLUMN_NAME_CATEGORY_NAME)));
    et_description.setText(cursor.getString(cursor.getColumnIndex(BookmarkCategories.COLUMN_NAME_DESCRIPTION)));
    cursor.close();
  }
 else {
    et_name.setText("String_Node_Str");
    et_description.setText("String_Node_Str");
  }
  new AlertDialog.Builder(activity).setTitle(categoryID < 0 ? "String_Node_Str" : "String_Node_Str").setView(ll_root).setNegativeButton("String_Node_Str",new DialogInterface.OnClickListener(){
    @Override public void onClick(    DialogInterface dialog,    int which){
    }
  }
).setPositiveButton(categoryID < 0 ? "String_Node_Str" : "String_Node_Str",new DialogInterface.OnClickListener(){
    @Override public void onClick(    DialogInterface dialog,    int which){
      String name=et_name.getText().toString();
      String comment=et_description.getText().toString();
      ContentValues values=new ContentValues();
      values.put(BookmarkCategories.COLUMN_NAME_CATEGORY_NAME,name);
      values.put(BookmarkCategories.COLUMN_NAME_DESCRIPTION,comment);
      if (categoryID >= 0)       activity.getContentResolver().update(ContentUris.withAppendedId(BookmarkCategories.CONTENT_URI,categoryID),values,null,null);
 else       activity.getContentResolver().insert(BookmarkCategories.CONTENT_URI,values);
      reloadCategories();
    }
  }
).create().show();
}