Program: 36338
Project: 36338
Buggy source:
private void initializeView(){
  navigationTabs=Arrays.asList(getResources().getStringArray(R.array.navigation_tab));
  drawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  mainContent=(LinearLayout)findViewById(R.id.llMainContent);
  headerCampus=(TextView)drawerLayout.findViewById(R.id.header_campus);
  headerUsername=(TextView)drawerLayout.findViewById(R.id.header_username);
  final Toolbar toolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(toolbar);
  final ActionBar actionBar=getSupportActionBar();
  if (actionBar != null) {
    ActionBarDrawerToggle mDrawerToggle=new ActionBarDrawerToggle(this,drawerLayout,toolbar,R.string.navigation_drawer_open,R.string.navigation_drawer_close);
    drawerLayout.setDrawerListener(mDrawerToggle);
    actionBar.setDisplayHomeAsUpEnabled(true);
    actionBar.setHomeButtonEnabled(true);
    mDrawerToggle.syncState();
  }
  headerUsername.setText(registerNumber);
  headerCampus.setText(toTitleCase(campus));
  NavigationView view=(NavigationView)findViewById(R.id.navigation_view);
  view.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener(){
    @Override public boolean onNavigationItemSelected(    final MenuItem menuItem){
      menuItem.setChecked(true);
      drawerLayout.closeDrawers();
      new Handler().postDelayed(new Runnable(){
        @Override public void run(){
          switchFragment(menuItem.getItemId());
        }
      }
,Constants.DRAWER_CLOSE_TIME_OUT);
      return true;
    }
  }
);
  getSupportFragmentManager().beginTransaction().add(R.id.flContent,new TodayFragment(),TodayFragment.class.getSimpleName()).commitAllowingStateLoss();
}

Fixed version (ground truth):
private void initializeView(){
  navigationTabs=Arrays.asList(getResources().getStringArray(R.array.navigation_tab));
  drawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  mainContent=(LinearLayout)findViewById(R.id.llMainContent);
  headerCampus=(TextView)drawerLayout.findViewById(R.id.header_campus);
  headerUsername=(TextView)drawerLayout.findViewById(R.id.header_username);
  final Toolbar toolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(toolbar);
  final ActionBar actionBar=getSupportActionBar();
  if (actionBar != null) {
    ActionBarDrawerToggle mDrawerToggle=new ActionBarDrawerToggle(this,drawerLayout,toolbar,R.string.navigation_drawer_open,R.string.navigation_drawer_close);
    drawerLayout.setDrawerListener(mDrawerToggle);
    actionBar.setDisplayHomeAsUpEnabled(true);
    actionBar.setHomeButtonEnabled(true);
    mDrawerToggle.syncState();
  }
  headerUsername.setText(registerNumber);
  headerCampus.setText(toTitleCase(campus));
  NavigationView view=(NavigationView)findViewById(R.id.navigation_view);
  view.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener(){
    @Override public boolean onNavigationItemSelected(    final MenuItem menuItem){
      menuItem.setChecked(true);
      drawerLayout.closeDrawers();
      new Handler().postDelayed(new Runnable(){
        @Override public void run(){
          switchFragment(menuItem.getItemId());
        }
      }
,Constants.DRAWER_CLOSE_TIME_OUT);
      return true;
    }
  }
);
  fragmentPreference="String_Node_Str";
  try {
    Class pref=Class.forName(fragmentPreference);
  }
 catch (  ClassNotFoundException e) {
    e.printStackTrace();
  }
  getSupportFragmentManager().beginTransaction().add(R.id.flContent,new TodayFragment(),TodayFragment.class.getSimpleName()).commitAllowingStateLoss();
}