Program: 25933
Project: 25933
Buggy source:
@Override protected ResultInfo doInBackground(Void... params){
  String savedUserId=OptionHelper.readString(mContext,R.string.option_userid,null);
  try {
    XAuthService xauth=new XAuthService(new FanFouOAuthProvider());
    OAuthToken token=xauth.requestOAuthAccessToken(username,password);
    if (App.DEBUG)     log("String_Node_Str" + token);
    if (isCancelled) {
      if (App.DEBUG) {
        log("String_Node_Str");
      }
      return new ResultInfo(LOGIN_CANCELLED_BY_USER,"String_Node_Str");
    }
    if (token != null) {
      publishProgress(1);
      App.me.token=token;
      User u=App.api.verifyAccount(FanFouApiConfig.MODE_LITE);
      if (isCancelled) {
        if (App.DEBUG) {
          log("String_Node_Str");
        }
        return new ResultInfo(LOGIN_CANCELLED_BY_USER,"String_Node_Str");
      }
      if (u != null && !u.isNull()) {
        App.me.updateAccountInfo(u,token);
        if (App.DEBUG)         log("String_Node_Str");
        if (StringHelper.isEmpty(savedUserId) || !savedUserId.equals(u.id)) {
          clearData();
        }
        return new ResultInfo(LOGIN_AUTH_SUCCESS);
      }
 else {
        if (App.DEBUG)         log("String_Node_Str");
        return new ResultInfo(LOGIN_AUTH_FAILED,"String_Node_Str");
      }
    }
 else {
      return new ResultInfo(LOGIN_AUTH_FAILED,"String_Node_Str");
    }
  }
 catch (  IOException e) {
    if (App.DEBUG)     e.printStackTrace();
    return new ResultInfo(LOGIN_IO_ERROR,getString(R.string.connection_error_msg));
  }
catch (  OAuthTokenException e) {
    if (App.DEBUG)     e.printStackTrace();
    return new ResultInfo(LOGIN_IO_ERROR,e.getMessage());
  }
catch (  ApiException e) {
    if (App.DEBUG)     e.printStackTrace();
    return new ResultInfo(LOGIN_IO_ERROR,e.getMessage());
  }
 finally {
  }
}

Fixed version (ground truth):
@Override protected ResultInfo doInBackground(Void... params){
  String savedUserId=OptionHelper.readString(mContext,R.string.option_userid,null);
  try {
    XAuthService xauth=new XAuthService(new FanFouOAuthProvider());
    OAuthToken token=xauth.requestOAuthAccessToken(username,password);
    if (App.DEBUG)     log("String_Node_Str" + token);
    if (isCancelled) {
      if (App.DEBUG) {
        log("String_Node_Str");
      }
      return new ResultInfo(LOGIN_CANCELLED_BY_USER,"String_Node_Str");
    }
    if (token != null) {
      publishProgress(1);
      App.me.setOAuthToken(token);
      User u=App.api.verifyAccount(FanFouApiConfig.MODE_LITE);
      if (isCancelled) {
        if (App.DEBUG) {
          log("String_Node_Str");
        }
        return new ResultInfo(LOGIN_CANCELLED_BY_USER,"String_Node_Str");
      }
      if (u != null && !u.isNull()) {
        App.me.updateAccountInfo(u,token);
        if (App.DEBUG)         log("String_Node_Str");
        if (StringHelper.isEmpty(savedUserId) || !savedUserId.equals(u.id)) {
          clearData();
        }
        return new ResultInfo(LOGIN_AUTH_SUCCESS);
      }
 else {
        if (App.DEBUG)         log("String_Node_Str");
        return new ResultInfo(LOGIN_AUTH_FAILED,"String_Node_Str");
      }
    }
 else {
      return new ResultInfo(LOGIN_AUTH_FAILED,"String_Node_Str");
    }
  }
 catch (  IOException e) {
    if (App.DEBUG)     e.printStackTrace();
    return new ResultInfo(LOGIN_IO_ERROR,getString(R.string.connection_error_msg));
  }
catch (  OAuthTokenException e) {
    if (App.DEBUG)     e.printStackTrace();
    return new ResultInfo(LOGIN_IO_ERROR,e.getMessage());
  }
catch (  ApiException e) {
    if (App.DEBUG)     e.printStackTrace();
    return new ResultInfo(LOGIN_IO_ERROR,e.getMessage());
  }
 finally {
  }
}