Program: 177810
Project: 177810
Buggy source:
public void authenticateAsync(Context context,String key,String secret,String uuid,final AuthProviderData data,final SocializeAuthListener listener,final SocializeSessionConsumer sessionConsumer,boolean do3rdPartyAuth){
  SocializeActionListener wrapper=null;
  final SocializeAuthListener localListener=new SocializeAuthListener(){
    @Override public void onError(    SocializeException error){
      if (listener != null) {
        listener.onError(error);
      }
 else {
        if (logger != null) {
          logger.error("String_Node_Str",error);
        }
      }
    }
    @Override public void onCancel(){
      if (listener != null) {
        listener.onCancel();
      }
    }
    @Override public void onAuthSuccess(    SocializeSession session){
      if (sessionConsumer != null) {
        sessionConsumer.setSession(session);
      }
      if (listener != null) {
        listener.onAuthSuccess(session);
      }
    }
    @Override public void onAuthFail(    SocializeException error){
      if (listener != null) {
        listener.onAuthFail(error);
      }
 else {
        if (logger != null) {
          logger.error("String_Node_Str",error);
        }
      }
    }
  }
;
  wrapper=new SocializeActionListener(){
    @Override public void onResult(    RequestType type,    SocializeResponse response){
      SocializeAuthResponse authResponse=(SocializeAuthResponse)response;
      localListener.onAuthSuccess(authResponse.getSession());
    }
    @Override public void onError(    SocializeException error){
      if (httpUtils != null && httpUtils.isAuthError(error)) {
        localListener.onAuthFail(error);
      }
 else {
        localListener.onError(error);
      }
    }
  }
;
  final SocializeAuthRequest request=new SocializeAuthRequest();
  request.setEndpoint("String_Node_Str");
  request.setConsumerKey(key);
  request.setConsumerSecret(secret);
  request.setUdid(uuid);
  request.setAuthProviderData(data);
  AuthProviderType authProviderType=getAuthProviderType(data);
  if (do3rdPartyAuth && !authProviderType.equals(AuthProviderType.SOCIALIZE)) {
    handle3rdPartyAuth(context,request,wrapper,localListener,key,secret);
  }
 else {
    handleRegularAuth(context,request,wrapper,localListener,key,secret,false);
  }
}

Fixed version (ground truth):
public void authenticateAsync(Context context,String key,String secret,String uuid,final AuthProviderData data,final SocializeAuthListener listener,final SocializeSessionConsumer sessionConsumer,boolean do3rdPartyAuth){
  SocializeActionListener wrapper=null;
  final SocializeAuthListener localListener=new SocializeAuthListener(){
    @Override public void onError(    SocializeException error){
      if (listener != null) {
        listener.onError(error);
      }
 else {
        if (logger != null) {
          logger.error("String_Node_Str",error);
        }
      }
    }
    @Override public void onCancel(){
      if (listener != null) {
        listener.onCancel();
      }
    }
    @Override public void onAuthSuccess(    SocializeSession session){
      if (sessionConsumer != null) {
        sessionConsumer.setSession(session);
      }
      if (listener != null) {
        listener.onAuthSuccess(session);
      }
    }
    @Override public void onAuthFail(    SocializeException error){
      if (listener != null) {
        listener.onAuthFail(error);
      }
 else {
        if (logger != null) {
          logger.error("String_Node_Str",error);
        }
      }
    }
  }
;
  wrapper=new SocializeActionListener(){
    @Override public void onResult(    RequestType type,    SocializeResponse response){
      SocializeAuthResponse authResponse=(SocializeAuthResponse)response;
      localListener.onAuthSuccess(authResponse.getSession());
    }
    @Override public void onError(    SocializeException error){
      if (httpUtils != null && httpUtils.isAuthError(error)) {
        localListener.onAuthFail(error);
      }
 else {
        localListener.onError(error);
      }
    }
  }
;
  final SocializeAuthRequest request=new SocializeAuthRequest();
  request.setEndpoint("String_Node_Str");
  request.setConsumerKey(key);
  request.setConsumerSecret(secret);
  request.setUdid(uuid);
  request.setAuthProviderData(data);
  AuthProviderType authProviderType=getAuthProviderType(data);
  if (do3rdPartyAuth && !authProviderType.equals(AuthProviderType.SOCIALIZE)) {
    handle3rdPartyAuth(context,request,wrapper,localListener,key,secret);
  }
 else {
    handleRegularAuth(context,request,wrapper,localListener,key,secret);
  }
}