Program: 177860
Project: 177860
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  try {
    loadConfig();
    setContentView(R.layout.authenticate);
    txtHost=(EditText)findViewById(R.id.txtHost);
    txtConsumerKey=(EditText)findViewById(R.id.txtConsumerKey);
    txtConsumerSecret=(EditText)findViewById(R.id.txtConsumerSecret);
    txtAuthResult=(TextView)findViewById(R.id.txtAuthResult);
    txtAuthUserID=(TextView)findViewById(R.id.txtAuthUserID);
    txtAuthUser3rdPartyID=(TextView)findViewById(R.id.txtAuthUser3rdPartyID);
    config=Socialize.getSocialize().getConfig();
    txtHost.setText(url);
    txtConsumerKey.setText(consumerKey);
    txtConsumerSecret.setText(consumerSecret);
    btnAuth=(Button)findViewById(R.id.btnAuthenticate);
    btnAuthFB=(Button)findViewById(R.id.btnAuthenticateFB);
    btnCheckAuth=(Button)findViewById(R.id.btnCheckAuthenticate);
    btnCheckAuthFB=(Button)findViewById(R.id.btnCheckAuthenticateFB);
    btnApi=(Button)findViewById(R.id.btnApi);
    btnExit=(Button)findViewById(R.id.btnExit);
    btnClearAuth=(Button)findViewById(R.id.btnClearAuth);
    btnAuth.setOnClickListener(new AuthenticateClickListener(false));
    btnAuthFB.setOnClickListener(new AuthenticateClickListener(true));
    btnApi.setOnClickListener(new OnClickListener(){
      @Override public void onClick(      View v){
        Intent i=new Intent(AuthenticateActivity.this,ApiActivity.class);
        startActivity(i);
      }
    }
);
    btnExit.setOnClickListener(new OnClickListener(){
      @Override public void onClick(      View v){
        finish();
      }
    }
);
    btnCheckAuth.setOnClickListener(new OnClickListener(){
      @Override public void onClick(      View v){
        if (Socialize.getSocialize().isAuthenticated()) {
          txtAuthResult.setText("String_Node_Str");
        }
 else {
          txtAuthResult.setText("String_Node_Str");
        }
      }
    }
);
    btnCheckAuthFB.setOnClickListener(new OnClickListener(){
      @Override public void onClick(      View v){
        if (Socialize.getSocialize().isAuthenticated(AuthProviderType.FACEBOOK)) {
          txtAuthResult.setText("String_Node_Str");
        }
 else {
          txtAuthResult.setText("String_Node_Str");
        }
      }
    }
);
    btnClearAuth.setOnClickListener(new OnClickListener(){
      @Override public void onClick(      View v){
        final ProgressDialog progress=ProgressDialog.show(AuthenticateActivity.this,"String_Node_Str","String_Node_Str");
        txtAuthResult.setText("String_Node_Str");
        new AsyncTask<Void,Void,Void>(){
          @Override protected Void doInBackground(          Void... params){
            Socialize.getSocialize().clearSessionCache();
            return null;
          }
          @Override protected void onPostExecute(          Void result){
            progress.dismiss();
            txtAuthResult.setText("String_Node_Str");
          }
        }
.execute((Void)null);
      }
    }
);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  try {
    loadConfig();
    setContentView(R.layout.authenticate);
    txtHost=(EditText)findViewById(R.id.txtHost);
    txtConsumerKey=(EditText)findViewById(R.id.txtConsumerKey);
    txtConsumerSecret=(EditText)findViewById(R.id.txtConsumerSecret);
    txtAuthResult=(TextView)findViewById(R.id.txtAuthResult);
    txtAuthUserID=(TextView)findViewById(R.id.txtAuthUserID);
    txtAuthUser3rdPartyID=(TextView)findViewById(R.id.txtAuthUser3rdPartyID);
    config=Socialize.getSocialize().getConfig();
    txtHost.setText(url);
    txtConsumerKey.setText(consumerKey);
    txtConsumerSecret.setText(consumerSecret);
    btnAuth=(Button)findViewById(R.id.btnAuthenticate);
    btnAuthFB=(Button)findViewById(R.id.btnAuthenticateFB);
    btnCheckAuth=(Button)findViewById(R.id.btnCheckAuthenticate);
    btnCheckAuthFB=(Button)findViewById(R.id.btnCheckAuthenticateFB);
    btnApi=(Button)findViewById(R.id.btnApi);
    btnExit=(Button)findViewById(R.id.btnExit);
    btnClearAuth=(Button)findViewById(R.id.btnClearAuth);
    btnAuth.setOnClickListener(new AuthenticateClickListener(false));
    btnAuthFB.setOnClickListener(new AuthenticateClickListener(true));
    btnApi.setOnClickListener(new OnClickListener(){
      @Override public void onClick(      View v){
        Intent i=new Intent(AuthenticateActivity.this,ApiActivity.class);
        startActivity(i);
      }
    }
);
    btnExit.setOnClickListener(new OnClickListener(){
      @Override public void onClick(      View v){
        finish();
      }
    }
);
    btnCheckAuth.setOnClickListener(new OnClickListener(){
      @Override public void onClick(      View v){
        if (Socialize.getSocialize().isAuthenticated()) {
          txtAuthResult.setText("String_Node_Str");
        }
 else {
          txtAuthResult.setText("String_Node_Str");
        }
      }
    }
);
    btnCheckAuthFB.setOnClickListener(new OnClickListener(){
      @Override public void onClick(      View v){
        if (Socialize.getSocialize().isAuthenticated(AuthProviderType.FACEBOOK)) {
          txtAuthResult.setText("String_Node_Str");
        }
 else {
          txtAuthResult.setText("String_Node_Str");
        }
      }
    }
);
    btnClearAuth.setOnClickListener(new OnClickListener(){
      @Override public void onClick(      final View v){
        final ProgressDialog progress=ProgressDialog.show(AuthenticateActivity.this,"String_Node_Str","String_Node_Str");
        txtAuthResult.setText("String_Node_Str");
        new AsyncTask<Void,Void,Void>(){
          @Override protected Void doInBackground(          Void... params){
            Socialize.getSocialize().clearSessionCache(v.getContext());
            return null;
          }
          @Override protected void onPostExecute(          Void result){
            progress.dismiss();
            txtAuthResult.setText("String_Node_Str");
          }
        }
.execute((Void)null);
      }
    }
);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}