Program: 160940
Project: 160940
Buggy source:
/** 
 * @return
 * @throws Exception
 */
private Profile getProfile() throws Exception {
  if (!isVerify || accessToken == null) {
    throw new SocialAuthException("String_Node_Str");
  }
  Profile p=new Profile();
  Response serviceResponse;
  if (profileId == null) {
    profileId=(String)accessGrant.getAttribute("String_Node_Str");
  }
  String profileURL=String.format(PROFILE_URL,profileId,accessToken);
  try {
    serviceResponse=HttpUtil.doHttpRequest(profileURL,"String_Node_Str",null,null);
  }
 catch (  Exception e) {
    throw new SocialAuthException("String_Node_Str" + profileURL,e);
  }
  String result;
  try {
    result=serviceResponse.getResponseBodyAsString(Constants.ENCODING);
    LOG.debug("String_Node_Str" + result);
  }
 catch (  Exception e) {
    throw new SocialAuthException("String_Node_Str" + profileURL,e);
  }
  try {
    JSONObject resp=new JSONObject(result);
    if (resp.has("String_Node_Str")) {
      p.setFullName(resp.getString("String_Node_Str"));
    }
    if (resp.has("String_Node_Str")) {
      p.setLocation(resp.getString("String_Node_Str"));
    }
    if (resp.has("String_Node_Str")) {
      p.setProfileImageURL(resp.getString("String_Node_Str"));
    }
    if (resp.has("String_Node_Str")) {
      String dstr=resp.getString("String_Node_Str");
      if (dstr != null) {
        String arr[]=dstr.split("String_Node_Str");
        BirthDate bd=new BirthDate();
        if (arr.length == 1) {
          Calendar currentDate=Calendar.getInstance();
          bd.setMonth(currentDate.get(Calendar.MONTH) + 1);
          bd.setDay(currentDate.get(Calendar.DAY_OF_MONTH));
        }
 else {
          if (arr.length > 0) {
            bd.setDay(Integer.parseInt(arr[1]));
          }
          if (arr.length > 1) {
            bd.setMonth(new Integer(SocialAuthUtil.getMonthInInt(arr[0])));
          }
        }
        p.setDob(bd);
      }
    }
    JSONObject userContactDetails=resp.getJSONObject("String_Node_Str");
    JSONArray emailArr=userContactDetails.getJSONArray("String_Node_Str");
    JSONObject eobj=emailArr.getJSONObject(0);
    if (eobj.has("String_Node_Str")) {
      p.setEmail(eobj.getString("String_Node_Str"));
    }
    p.setProviderId(getProviderId());
    userProfile=p;
    return userProfile;
  }
 catch (  Exception e) {
    throw new SocialAuthException("String_Node_Str" + result,e);
  }
}

Fixed version (ground truth):
/** 
 * @return
 * @throws Exception
 */
private Profile getProfile() throws Exception {
  if (!isVerify || accessToken == null) {
    throw new SocialAuthException("String_Node_Str");
  }
  Profile p=new Profile();
  Response serviceResponse;
  if (profileId == null) {
    profileId=(String)accessGrant.getAttribute("String_Node_Str");
  }
  String profileURL=String.format(PROFILE_URL,profileId,accessToken);
  Map<String,String> headerParam=new HashMap<String,String>();
  headerParam.put("String_Node_Str","String_Node_Str" + accessToken);
  try {
    serviceResponse=HttpUtil.doHttpRequest(profileURL,"String_Node_Str",null,headerParam);
  }
 catch (  Exception e) {
    throw new SocialAuthException("String_Node_Str" + profileURL,e);
  }
  String result;
  try {
    result=serviceResponse.getResponseBodyAsString(Constants.ENCODING);
    LOG.debug("String_Node_Str" + result);
  }
 catch (  Exception e) {
    throw new SocialAuthException("String_Node_Str" + profileURL,e);
  }
  try {
    JSONObject resp=new JSONObject(result);
    if (resp.has("String_Node_Str")) {
      p.setFullName(resp.getString("String_Node_Str"));
    }
    if (resp.has("String_Node_Str")) {
      p.setLocation(resp.getString("String_Node_Str"));
    }
    if (resp.has("String_Node_Str")) {
      p.setProfileImageURL(resp.getString("String_Node_Str"));
    }
    if (resp.has("String_Node_Str")) {
      String dstr=resp.getString("String_Node_Str");
      if (dstr != null) {
        String arr[]=dstr.split("String_Node_Str");
        BirthDate bd=new BirthDate();
        if (arr.length == 1) {
          Calendar currentDate=Calendar.getInstance();
          bd.setMonth(currentDate.get(Calendar.MONTH) + 1);
          bd.setDay(currentDate.get(Calendar.DAY_OF_MONTH));
        }
 else {
          if (arr.length > 0) {
            bd.setDay(Integer.parseInt(arr[1]));
          }
          if (arr.length > 1) {
            bd.setMonth(new Integer(SocialAuthUtil.getMonthInInt(arr[0])));
          }
        }
        p.setDob(bd);
      }
    }
    JSONObject userContactDetails=resp.getJSONObject("String_Node_Str");
    JSONArray emailArr=userContactDetails.getJSONArray("String_Node_Str");
    JSONObject eobj=emailArr.getJSONObject(0);
    if (eobj.has("String_Node_Str")) {
      p.setEmail(eobj.getString("String_Node_Str"));
    }
    p.setProviderId(getProviderId());
    userProfile=p;
    return userProfile;
  }
 catch (  Exception e) {
    throw new SocialAuthException("String_Node_Str" + result,e);
  }
}