Program: 26206
Project: 26206
Buggy source:
/** 
 * Called when the activity is first created. 
 */
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.insight_vote);
  SharedPreferences prefs=getSharedPreferences(BeansightApplication.BEANSIGHT_PREFS,0);
  accessToken=prefs.getString("String_Node_Str",null);
  userName=prefs.getString("String_Node_Str",null);
  insightList=new ArrayList<InsightListItem>();
  cxt=this;
  radioGroup=(RadioGroup)findViewById(R.id.agreeDisagreeButtons);
  radioAgree=(RadioButton)findViewById(R.id.buttonAgree);
  radioAgree.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      agree();
    }
  }
);
  radioDisagree=(RadioButton)findViewById(R.id.buttonDisagree);
  radioDisagree.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      disagree();
    }
  }
);
  pager=(ViewPager)findViewById(R.id.insightPager);
  pager.setAdapter(new InsightListPagerAdapter());
  pager.setOnPageChangeListener(new MyPageChangeListener());
  final ActivityData data=(ActivityData)getLastNonConfigurationInstance();
  if (data != null) {
    insightList=data.insightList;
    currentInsightIndex=data.currentInsightIndex;
  }
 else {
    String alertTitle="String_Node_Str";
    if (userName != null) {
      alertTitle=userName;
    }
    loadingInsightsDialog=ProgressDialog.show(this,alertTitle,getResources().getText(R.string.loading_insights),true);
    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_NOSENSOR);
    fetchNextInsights();
  }
}

Fixed version (ground truth):
/** 
 * Called when the activity is first created. 
 */
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.insight_vote);
  SharedPreferences prefs=getSharedPreferences(BeansightApplication.BEANSIGHT_PREFS,0);
  accessToken=prefs.getString("String_Node_Str",null);
  userName=prefs.getString("String_Node_Str",null);
  insightList=new ArrayList<InsightListItem>();
  cxt=this;
  radioGroup=(RadioGroup)findViewById(R.id.agreeDisagreeButtons);
  radioAgree=(RadioButton)findViewById(R.id.buttonAgree);
  radioAgree.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      agree();
    }
  }
);
  radioDisagree=(RadioButton)findViewById(R.id.buttonDisagree);
  radioDisagree.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      disagree();
    }
  }
);
  pager=(ViewPager)findViewById(R.id.insightPager);
  pager.setAdapter(new InsightListPagerAdapter());
  pager.setOnPageChangeListener(new MyPageChangeListener());
  if (accessToken == null) {
    openConnectScreen();
    return;
  }
  final ActivityData data=(ActivityData)getLastNonConfigurationInstance();
  if (data != null) {
    insightList=data.insightList;
    currentInsightIndex=data.currentInsightIndex;
  }
 else {
    String alertTitle="String_Node_Str";
    if (userName != null) {
      alertTitle=userName;
    }
    loadingInsightsDialog=ProgressDialog.show(this,alertTitle,getResources().getText(R.string.loading_insights),true);
    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_NOSENSOR);
    fetchNextInsights();
  }
}