Program: 153374
Project: 153374
Buggy source:
private SimpleHttpResponse requestHttpResponse(String url,Map<String,String> header,Map<String,Object> postMap,Map<String,String> getMap,int method) throws HttpConnectMatjiException {
  SimpleHttpResponse httpResponse=null;
  NetworkInfo netInfo_mobile=cm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
  NetworkInfo netInfo_wifi=cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
  Map<String,String> getParam=(getMap == null) ? null : (new Hashtable(getMap));
  Map<String,Object> postParam=(postMap == null) ? null : (new Hashtable(postMap));
  if ((netInfo_mobile.getState() == NetworkInfo.State.CONNECTED) || (netInfo_wifi.getState() == NetworkInfo.State.CONNECTED)) {
    Map<String,String> baseHeader=new HashMap<String,String>();
    if (header != null) {
      baseHeader.putAll(header);
    }
    if (postParam != null) {
      if (session != null && session.isLogin())       postParam.put("String_Node_Str","String_Node_Str" + session.getToken());
      postParam.put("String_Node_Str","String_Node_Str");
    }
 else     if (getParam != null) {
      Log.d("String_Node_Str","String_Node_Str");
      if (session != null && session.isLogin()) {
        Log.d("String_Node_Str","String_Node_Str" + session.getToken());
        getParam.put("String_Node_Str","String_Node_Str" + session.getToken());
      }
      getParam.put("String_Node_Str","String_Node_Str");
    }
    if (method == HttpUtility.ASYNC_METHOD_POST) {
      HttpUtility utility=HttpUtility.getInstance();
      httpResponse=utility.post(url,baseHeader,postParam,this);
    }
 else {
      httpResponse=HttpUtility.getInstance().get(url,baseHeader,getParam,this);
    }
  }
 else {
    httpResponse=null;
  }
  if (httpResponse == null) {
    throw new HttpConnectMatjiException();
  }
 else   return httpResponse;
}

Fixed version (ground truth):
private SimpleHttpResponse requestHttpResponse(String url,Map<String,String> header,Map<String,Object> postMap,Map<String,String> getMap,int method) throws HttpConnectMatjiException {
  SimpleHttpResponse httpResponse=null;
  NetworkInfo netInfo_mobile=cm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
  NetworkInfo netInfo_wifi=cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
  Map<String,String> getParam=(getMap == null) ? null : (new Hashtable(getMap));
  Map<String,Object> postParam=(postMap == null) ? null : (new Hashtable(postMap));
  if ((netInfo_mobile.getState() == NetworkInfo.State.CONNECTED) || (netInfo_wifi.getState() == NetworkInfo.State.CONNECTED)) {
    Map<String,String> baseHeader=new HashMap<String,String>();
    if (header != null) {
      baseHeader.putAll(header);
    }
    if (postParam != null) {
      if (session.isLogin())       postParam.put("String_Node_Str","String_Node_Str" + session.getToken());
      postParam.put("String_Node_Str","String_Node_Str");
    }
 else     if (getParam != null) {
      if (session.isLogin())       getParam.put("String_Node_Str","String_Node_Str" + session.getToken());
      getParam.put("String_Node_Str","String_Node_Str");
    }
    if (method == HttpUtility.ASYNC_METHOD_POST) {
      HttpUtility utility=HttpUtility.getInstance();
      httpResponse=utility.post(url,baseHeader,postParam,this);
    }
 else {
      httpResponse=HttpUtility.getInstance().get(url,baseHeader,getParam,this);
    }
  }
 else {
    httpResponse=null;
  }
  if (httpResponse == null) {
    throw new HttpConnectMatjiException();
  }
 else   return httpResponse;
}