Program: 16985
Project: 16985
Buggy source:
@Override protected Boolean doInBackground(String... params){
  HttpClient client=new DefaultHttpClient();
  serverUrl=params[0];
  HttpPost post=new HttpPost(serverUrl + AUTH_SUFFIX);
  try {
    List<NameValuePair> nameValuePairs=new ArrayList<NameValuePair>();
    nameValuePairs.add(new BasicNameValuePair("String_Node_Str",edtLinkcode.getText().toString()));
    post.setEntity(new UrlEncodedFormEntity(nameValuePairs));
    HttpResponse response=client.execute(post);
    if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
      BufferedReader in=new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
      StringBuffer sb=new StringBuffer();
      String line="String_Node_Str";
      String NL=System.getProperty("String_Node_Str");
      while ((line=in.readLine()) != null) {
        sb.append(line + NL);
      }
      in.close();
      JSONObject credentials=new JSONObject(sb.toString());
      String ident=credentials.getString("String_Node_Str");
      String authCode=credentials.getString("String_Node_Str");
      foldername=credentials.getString("String_Node_Str");
      SharedPreferences prefs=SettingsActivity.getSettings((ContextWrapper)context);
      Editor editor=prefs.edit();
      editor.putString("String_Node_Str",ident);
      editor.putString("String_Node_Str",authCode);
      editor.putString("String_Node_Str",serverUrl);
      editor.commit();
    }
  }
 catch (  UnsupportedEncodingException e) {
    Log.e("String_Node_Str",e.getLocalizedMessage());
    return false;
  }
catch (  ClientProtocolException e) {
    Log.e("String_Node_Str",e.getLocalizedMessage());
    return false;
  }
catch (  IOException e) {
    Log.e("String_Node_Str",e.getLocalizedMessage());
    return false;
  }
catch (  JSONException e) {
    Log.e("String_Node_Str",e.getLocalizedMessage());
    return false;
  }
catch (  Exception e) {
    Log.e("String_Node_Str",e.getLocalizedMessage());
    return false;
  }
  return true;
}

Fixed version (ground truth):
@Override protected Boolean doInBackground(String... params){
  HttpClient client=new DefaultHttpClient();
  serverUrl=params[0];
  HttpPost post=new HttpPost(serverUrl + AUTH_SUFFIX);
  try {
    List<NameValuePair> nameValuePairs=new ArrayList<NameValuePair>();
    nameValuePairs.add(new BasicNameValuePair("String_Node_Str",edtLinkcode.getText().toString()));
    post.setEntity(new UrlEncodedFormEntity(nameValuePairs));
    HttpResponse response=client.execute(post);
    if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
      BufferedReader in=new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
      StringBuffer sb=new StringBuffer();
      String line="String_Node_Str";
      String NL=System.getProperty("String_Node_Str");
      while ((line=in.readLine()) != null) {
        sb.append(line + NL);
      }
      in.close();
      JSONObject credentials=new JSONObject(sb.toString());
      String ident=credentials.getString("String_Node_Str");
      String authCode=credentials.getString("String_Node_Str");
      SharedPreferences prefs=SettingsActivity.getSettings((ContextWrapper)context);
      Editor editor=prefs.edit();
      editor.putString("String_Node_Str",ident);
      editor.putString("String_Node_Str",authCode);
      editor.putString("String_Node_Str",serverUrl);
      editor.commit();
    }
  }
 catch (  UnsupportedEncodingException e) {
    Log.e("String_Node_Str",e.getLocalizedMessage());
    return false;
  }
catch (  ClientProtocolException e) {
    Log.e("String_Node_Str",e.getLocalizedMessage());
    return false;
  }
catch (  IOException e) {
    Log.e("String_Node_Str",e.getLocalizedMessage());
    return false;
  }
catch (  JSONException e) {
    Log.e("String_Node_Str",e.getLocalizedMessage());
    return false;
  }
catch (  Exception e) {
    Log.e("String_Node_Str",e.getLocalizedMessage());
    return false;
  }
  return true;
}