Program: 40694
Project: 40694
Buggy source:
@Override public void onDrawerClicked(int position){
  Fragment fragment=null;
  Tracker t=((ListApplication)getApplication()).getTracker(ListApplication.TrackerName.GLOBAL_TRACKER);
switch (position) {
case 0:
    fragment=new MyListFragment();
  t.setScreenName("String_Node_Str");
t.send(new HitBuilders.ScreenViewBuilder().build());
break;
case 1:
fragment=new GalleryFragment();
t.setScreenName("String_Node_Str");
t.send(new HitBuilders.ScreenViewBuilder().build());
break;
case 2:
if (!mRequestMethods.isNetworkAvailable()) {
mMessageHelper.toastNeedInternet();
return;
}
Intent catIntent=new Intent(MainActivity.this,CategoryListActivity.class);
startActivity(catIntent);
break;
case 3:
if (!mRequestMethods.isNetworkAvailable()) {
mMessageHelper.toastNeedInternet();
return;
}
Intent reqIntent=new Intent(MainActivity.this,AddItemActivity.class);
startActivity(reqIntent);
break;
case 4:
Intent aboutIntent=new Intent(MainActivity.this,AboutActivity.class);
startActivity(aboutIntent);
break;
case 5:
mSharedPref.setSurveyTaken(true);
t.setScreenName("String_Node_Str");
t.send(new HitBuilders.ScreenViewBuilder().build());
Intent browserIntent=new Intent(Intent.ACTION_VIEW,Uri.parse(getString(R.string.dialog_survey_link)));
startActivity(browserIntent);
break;
default :
break;
}
if (fragment != null) {
FragmentManager fragmentManager=getSupportFragmentManager();
fragmentManager.beginTransaction().replace(R.id.main_content_container,fragment).setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN).commit();
getSupportActionBar().setTitle(mDrawerTitles[position]);
mDrawerLayout.closeDrawer(mDrawerView);
}
 else {
Log.e(TAG,"String_Node_Str");
}
}

Fixed version (ground truth):
@Override public void onDrawerClicked(int position){
  Fragment fragment=null;
  Tracker t=((ListApplication)getApplication()).getTracker(ListApplication.TrackerName.GLOBAL_TRACKER);
switch (position) {
case 0:
    fragment=new MyListFragment();
  t.setScreenName("String_Node_Str");
t.send(new HitBuilders.ScreenViewBuilder().build());
break;
case 1:
if (!mRequestMethods.isNetworkAvailable()) {
mMessageHelper.toastNeedInternet();
return;
}
fragment=new GalleryFragment();
t.setScreenName("String_Node_Str");
t.send(new HitBuilders.ScreenViewBuilder().build());
break;
case 2:
if (!mRequestMethods.isNetworkAvailable()) {
mMessageHelper.toastNeedInternet();
return;
}
Intent catIntent=new Intent(MainActivity.this,CategoryListActivity.class);
startActivity(catIntent);
break;
case 3:
if (!mRequestMethods.isNetworkAvailable()) {
mMessageHelper.toastNeedInternet();
return;
}
Intent reqIntent=new Intent(MainActivity.this,AddItemActivity.class);
startActivity(reqIntent);
break;
case 4:
Intent aboutIntent=new Intent(MainActivity.this,AboutActivity.class);
startActivity(aboutIntent);
break;
case 5:
mSharedPref.setSurveyTaken(true);
Intent browserIntent=new Intent(Intent.ACTION_VIEW,Uri.parse(getString(R.string.dialog_survey_link)));
startActivity(browserIntent);
break;
default :
break;
}
if (fragment != null) {
mDrawerLayout.closeDrawer(mDrawerView);
FragmentManager fragmentManager=getSupportFragmentManager();
fragmentManager.beginTransaction().replace(R.id.main_content_container,fragment).setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN).commit();
getSupportActionBar().setTitle(mDrawerTitles[position]);
}
 else {
Log.e(TAG,"String_Node_Str");
}
}