Program: 26214
Project: 26214
Buggy source:
@SuppressLint("String_Node_Str") public static InputStream PerformJsonRequest(String urlString,List<NameValuePair> nameValuePairs,final String username,final String password,Context context) throws AuthenticationException, Exception {
  if (nameValuePairs != null)   urlString+="String_Node_Str" + URLEncodedUtils.format(nameValuePairs,"String_Node_Str");
  URL url=new URL(urlString);
  HttpURLConnection urlConnection=null;
  if (url.getProtocol().toLowerCase(Locale.ENGLISH).equals("String_Node_Str"))   urlConnection=(HttpURLConnection)url.openConnection();
 else {
    SharedPreferences sp=PreferenceManager.getDefaultSharedPreferences(context);
    if (sp.getBoolean(SettingsActivity.CB_ALLOWALLSSLCERTIFICATES_STRING,false)) {
      TrustManager[] trustAllCerts=new TrustManager[]{new CustomTrustManager()};
      SSLContext sc=SSLContext.getInstance("String_Node_Str");
      sc.init(null,trustAllCerts,new java.security.SecureRandom());
      HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
      HttpsURLConnection.setDefaultHostnameVerifier(new AllowAllHostnameVerifier());
    }
    HttpsURLConnection sslConnection=(HttpsURLConnection)url.openConnection();
    urlConnection=sslConnection;
  }
  if (username != null && password != null)   urlConnection.setRequestProperty("String_Node_Str","String_Node_Str" + Base64.encode((username + "String_Node_Str" + password).getBytes()));
  urlConnection.setDoOutput(false);
  urlConnection.setDoInput(true);
  urlConnection.setRequestMethod("String_Node_Str");
  urlConnection.setUseCaches(false);
  urlConnection.setConnectTimeout(10000);
  urlConnection.setReadTimeout(120000);
  urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
  urlConnection.connect();
  int HttpResult=urlConnection.getResponseCode();
  if (HttpResult == HttpURLConnection.HTTP_OK) {
    return urlConnection.getInputStream();
  }
 else {
    if (urlConnection.getResponseMessage().equals("String_Node_Str"))     throw new AuthenticationException(urlConnection.getResponseMessage());
 else     throw new Exception(urlConnection.getResponseMessage());
  }
}

Fixed version (ground truth):
@SuppressLint("String_Node_Str") public static InputStream PerformJsonRequest(String urlString,List<NameValuePair> nameValuePairs,final String username,final String password,Context context) throws AuthenticationException, Exception {
  if (nameValuePairs != null)   urlString+="String_Node_Str" + URLEncodedUtils.format(nameValuePairs,"String_Node_Str");
  URL url=new URL(urlString);
  HttpURLConnection urlConnection=getUrlConnection(url,context,username,password);
  urlConnection.setDoOutput(false);
  urlConnection.setDoInput(true);
  urlConnection.setRequestMethod("String_Node_Str");
  urlConnection.setUseCaches(false);
  urlConnection.setConnectTimeout(10000);
  urlConnection.setReadTimeout(120000);
  urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
  urlConnection.connect();
  int HttpResult=urlConnection.getResponseCode();
  if (HttpResult == HttpURLConnection.HTTP_OK) {
    return urlConnection.getInputStream();
  }
 else {
    if (urlConnection.getResponseMessage().equals("String_Node_Str"))     throw new AuthenticationException(urlConnection.getResponseMessage());
 else     throw new Exception(urlConnection.getResponseMessage());
  }
}