Program: 84950
Project: 84950
Buggy source:
/** 
 * Get status description according to status code.
 */
public static String getStatusDescription(Context context,int statusCode){
  String ret;
  if (statusCode == BluetoothShare.STATUS_PENDING) {
    ret=context.getString(R.string.status_pending);
  }
 else   if (statusCode == BluetoothShare.STATUS_RUNNING) {
    ret=context.getString(R.string.status_running);
  }
 else   if (statusCode == BluetoothShare.STATUS_SUCCESS) {
    ret=context.getString(R.string.status_success);
  }
 else   if (statusCode == BluetoothShare.STATUS_NOT_ACCEPTABLE) {
    ret=context.getString(R.string.status_not_accept);
  }
 else   if (statusCode == BluetoothShare.STATUS_FORBIDDEN) {
    ret=context.getString(R.string.status_forbidden);
  }
 else   if (statusCode == BluetoothShare.STATUS_CANCELED) {
    ret=context.getString(R.string.status_canceled);
  }
 else   if (statusCode == BluetoothShare.STATUS_FILE_ERROR) {
    ret=context.getString(R.string.status_file_error);
  }
 else   if (statusCode == BluetoothShare.STATUS_ERROR_NO_SDCARD) {
    ret=context.getString(R.string.status_no_sd_card);
  }
 else   if (statusCode == BluetoothShare.STATUS_CONNECTION_ERROR) {
    ret=context.getString(R.string.status_connection_error);
  }
 else   if (statusCode == BluetoothShare.STATUS_ERROR_SDCARD_FULL) {
    ret=context.getString(R.string.bt_sm_2_1);
  }
 else   if ((statusCode == BluetoothShare.STATUS_BAD_REQUEST) || (statusCode == BluetoothShare.STATUS_LENGTH_REQUIRED) || (statusCode == BluetoothShare.STATUS_PRECONDITION_FAILED)|| (statusCode == BluetoothShare.STATUS_UNHANDLED_OBEX_CODE)|| (statusCode == BluetoothShare.STATUS_OBEX_DATA_ERROR)) {
    ret=context.getString(R.string.status_protocol_error);
  }
 else {
    ret=context.getString(R.string.status_unknown_error);
  }
  return ret;
}

Fixed version (ground truth):
/** 
 * Get status description according to status code.
 */
public static String getStatusDescription(Context context,int statusCode,String deviceName){
  String ret;
  if (statusCode == BluetoothShare.STATUS_PENDING) {
    ret=context.getString(R.string.status_pending);
  }
 else   if (statusCode == BluetoothShare.STATUS_RUNNING) {
    ret=context.getString(R.string.status_running);
  }
 else   if (statusCode == BluetoothShare.STATUS_SUCCESS) {
    ret=context.getString(R.string.status_success);
  }
 else   if (statusCode == BluetoothShare.STATUS_NOT_ACCEPTABLE) {
    ret=context.getString(R.string.status_not_accept);
  }
 else   if (statusCode == BluetoothShare.STATUS_FORBIDDEN) {
    ret=context.getString(R.string.status_forbidden);
  }
 else   if (statusCode == BluetoothShare.STATUS_CANCELED) {
    ret=context.getString(R.string.status_canceled);
  }
 else   if (statusCode == BluetoothShare.STATUS_FILE_ERROR) {
    ret=context.getString(R.string.status_file_error);
  }
 else   if (statusCode == BluetoothShare.STATUS_ERROR_NO_SDCARD) {
    ret=context.getString(R.string.status_no_sd_card);
  }
 else   if (statusCode == BluetoothShare.STATUS_CONNECTION_ERROR) {
    ret=context.getString(R.string.status_connection_error);
  }
 else   if (statusCode == BluetoothShare.STATUS_ERROR_SDCARD_FULL) {
    ret=context.getString(R.string.bt_sm_2_1,deviceName);
  }
 else   if ((statusCode == BluetoothShare.STATUS_BAD_REQUEST) || (statusCode == BluetoothShare.STATUS_LENGTH_REQUIRED) || (statusCode == BluetoothShare.STATUS_PRECONDITION_FAILED)|| (statusCode == BluetoothShare.STATUS_UNHANDLED_OBEX_CODE)|| (statusCode == BluetoothShare.STATUS_OBEX_DATA_ERROR)) {
    ret=context.getString(R.string.status_protocol_error);
  }
 else {
    ret=context.getString(R.string.status_unknown_error);
  }
  return ret;
}