Program: 14923
Project: 14923
Buggy source:
public List<Map<String,Object>> getBlogList(){
  if (mSelfHostedURL != null && mSelfHostedURL.length() != 0) {
    mXmlrpcUrl=getSelfHostedXmlrpcUrl(mSelfHostedURL);
  }
 else {
    mXmlrpcUrl=Constants.wpcomXMLRPCURL;
  }
  if (mXmlrpcUrl == null) {
    if (!mHttpAuthRequired)     mErrorMsgId=R.string.no_site_error;
    return null;
  }
  URI uri;
  try {
    uri=URI.create(mXmlrpcUrl);
  }
 catch (  Exception e1) {
    mErrorMsgId=R.string.no_site_error;
    return null;
  }
  XMLRPCClientInterface client=XMLRPCFactory.instantiate(uri,mHttpUsername,mHttpPassword);
  Object[] params={mUsername,mPassword};
  try {
    Object[] userBlogs=(Object[])client.call("String_Node_Str",params);
    if (userBlogs == null) {
      mErrorMsgId=R.string.xmlrpc_error;
      return null;
    }
    Arrays.sort(userBlogs,Utils.BlogNameComparator);
    List<Map<String,Object>> userBlogList=new ArrayList<Map<String,Object>>();
    for (    Object blog : userBlogs) {
      try {
        userBlogList.add((Map<String,Object>)blog);
      }
 catch (      ClassCastException e) {
        AppLog.e(T.NUX,"String_Node_Str");
      }
    }
    return userBlogList;
  }
 catch (  XMLRPCException e) {
    String message=e.getMessage();
    if (message.contains("String_Node_Str")) {
      mErrorMsgId=R.string.username_or_password_incorrect;
    }
 else     if (message.contains("String_Node_Str")) {
      mErrorMsgId=R.string.xmlrpc_error;
    }
 else     if (message.contains("String_Node_Str")) {
      mErrorMsgId=R.string.account_two_step_auth_enabled;
    }
 else {
      mErrorMsgId=R.string.no_network_message;
    }
    return null;
  }
}

Fixed version (ground truth):
public List<Map<String,Object>> getBlogList(){
  if (mSelfHostedURL != null && mSelfHostedURL.length() != 0) {
    mXmlrpcUrl=getSelfHostedXmlrpcUrl(mSelfHostedURL);
  }
 else {
    mXmlrpcUrl=Constants.wpcomXMLRPCURL;
  }
  if (mXmlrpcUrl == null) {
    if (!mHttpAuthRequired)     mErrorMsgId=R.string.no_site_error;
    return null;
  }
  URI uri;
  try {
    uri=URI.create(mXmlrpcUrl);
  }
 catch (  Exception e1) {
    mErrorMsgId=R.string.no_site_error;
    return null;
  }
  XMLRPCClientInterface client=XMLRPCFactory.instantiate(uri,mHttpUsername,mHttpPassword);
  Object[] params={mUsername,mPassword};
  try {
    Object[] userBlogs=(Object[])client.call("String_Node_Str",params);
    if (userBlogs == null) {
      mErrorMsgId=R.string.no_network_message;
      return null;
    }
    Arrays.sort(userBlogs,Utils.BlogNameComparator);
    List<Map<String,Object>> userBlogList=new ArrayList<Map<String,Object>>();
    for (    Object blog : userBlogs) {
      try {
        userBlogList.add((Map<String,Object>)blog);
      }
 catch (      ClassCastException e) {
        AppLog.e(T.NUX,"String_Node_Str");
      }
    }
    return userBlogList;
  }
 catch (  XMLRPCException e) {
    String message=e.getMessage();
    if (message.contains("String_Node_Str")) {
      mErrorMsgId=R.string.username_or_password_incorrect;
    }
 else     if (message.contains("String_Node_Str")) {
      mErrorMsgId=R.string.xmlrpc_error;
    }
 else     if (message.contains("String_Node_Str")) {
      mErrorMsgId=R.string.account_two_step_auth_enabled;
    }
 else {
      mErrorMsgId=R.string.no_network_message;
    }
    return null;
  }
}