Program: 60037
Project: 60037
Buggy source:
public Pair<Integer,JSONObject> execute(String method,URL url,String requestBody,boolean skipError) throws OCSyncException {
  Pair<Integer,JSONObject> response;
  HttpURLConnection urlConnection=null;
  try {
    urlConnection=(HttpURLConnection)url.openConnection();
  }
 catch (  IOException e) {
    Log.e(OCHttpClient.TAG,"String_Node_Str" + e);
    throw new OCSyncException(R.string.err_sync_http_request_ioexception,OCSyncErrorType.IO);
  }
 finally {
    if (urlConnection != null) {
      urlConnection.disconnect();
    }
  }
  if (urlConnection == null) {
    Log.e(OCHttpClient.TAG,"String_Node_Str");
    throw new OCSyncException(R.string.err_sync_http_request_ioexception,OCSyncErrorType.IO);
  }
  try {
    urlConnection.setRequestMethod(method);
  }
 catch (  ProtocolException e) {
    Log.e(OCHttpClient.TAG,"String_Node_Str" + e);
    throw new OCSyncException(R.string.err_sync_http_request_ioexception,OCSyncErrorType.IO);
  }
  urlConnection.setRequestProperty("String_Node_Str",_userAgent);
  urlConnection.setInstanceFollowRedirects(true);
  if (!"String_Node_Str".equals(method)) {
    urlConnection.setDoOutput(true);
  }
  urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
  urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
  urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
  String basicAuth="String_Node_Str" + Base64.encodeToString((_username + "String_Node_Str" + _password).getBytes(),Base64.NO_WRAP);
  urlConnection.setRequestProperty("String_Node_Str",basicAuth);
  urlConnection.setChunkedStreamingMode(0);
  if (!"String_Node_Str".equals(method)) {
    try {
      OutputStream out=new BufferedOutputStream(urlConnection.getOutputStream());
      out.write(requestBody.getBytes(Charset.forName("String_Node_Str")));
      out.close();
    }
 catch (    IOException e) {
      Log.e(OCHttpClient.TAG,"String_Node_Str" + e);
      throw new OCSyncException(R.string.err_sync_http_write_failed,OCSyncErrorType.IO);
    }
  }
  response=handleHTTPResponse(urlConnection,skipError);
  return response;
}

Fixed version (ground truth):
public Pair<Integer,JSONObject> execute(String method,URL url,String requestBody,boolean skipError) throws OCSyncException {
  Pair<Integer,JSONObject> response;
  HttpURLConnection urlConnection=null;
  try {
    urlConnection=(HttpURLConnection)url.openConnection();
  }
 catch (  IOException e) {
    Log.e(OCHttpClient.TAG,"String_Node_Str" + e);
    throw new OCSyncException(R.string.err_sync_http_request_ioexception,OCSyncErrorType.IO);
  }
 finally {
    if (urlConnection != null) {
      urlConnection.disconnect();
    }
  }
  if (urlConnection == null) {
    Log.e(OCHttpClient.TAG,"String_Node_Str");
    throw new OCSyncException(R.string.err_sync_http_request_ioexception,OCSyncErrorType.IO);
  }
  try {
    urlConnection.setRequestMethod(method);
  }
 catch (  ProtocolException e) {
    Log.e(OCHttpClient.TAG,"String_Node_Str" + e);
    throw new OCSyncException(R.string.err_sync_http_request_protocol_exception,OCSyncErrorType.IO);
  }
  urlConnection.setRequestProperty("String_Node_Str",_userAgent);
  urlConnection.setInstanceFollowRedirects(true);
  if (!"String_Node_Str".equals(method)) {
    urlConnection.setDoOutput(true);
  }
  urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
  urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
  if (!"String_Node_Str".equals(method)) {
    urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
  }
  String basicAuth="String_Node_Str" + Base64.encodeToString((_username + "String_Node_Str" + _password).getBytes(),Base64.NO_WRAP);
  urlConnection.setRequestProperty("String_Node_Str",basicAuth);
  urlConnection.setChunkedStreamingMode(0);
  if (!"String_Node_Str".equals(method)) {
    try {
      OutputStream out=new BufferedOutputStream(urlConnection.getOutputStream());
      out.write(requestBody.getBytes(Charset.forName("String_Node_Str")));
      out.close();
    }
 catch (    IOException e) {
      Log.e(OCHttpClient.TAG,"String_Node_Str" + e);
      throw new OCSyncException(R.string.err_sync_http_write_failed,OCSyncErrorType.IO);
    }
  }
  response=handleHTTPResponse(urlConnection,skipError);
  return response;
}