Program: 97659
Project: 97659
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ThemeUtil.setTheme(this);
  setContentView(R.layout.activity_welcome);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  Toolbar mToolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(mToolbar);
  mNavigationView=(NavigationView)findViewById(R.id.navigation_view);
  mNavigationView.setNavigationItemSelectedListener(this);
  ActionBarDrawerToggle mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,mToolbar,R.string.navigation_drawer_open,R.string.navigation_drawer_close);
  mDrawerLayout.setDrawerListener(mDrawerToggle);
  mDrawerToggle.syncState();
  SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(this);
  mSelectedId=mNavigationView.getMenu().getItem(prefs.getInt("String_Node_Str",0)).getItemId();
  mSelectedId=savedInstanceState == null ? mSelectedId : savedInstanceState.getInt(SELECTED_ITEM_ID);
  mPrevSelectedId=mSelectedId;
  mNavigationView.getMenu().findItem(mSelectedId).setChecked(true);
  if (savedInstanceState == null) {
    mDrawerHandler.removeCallbacksAndMessages(null);
    mDrawerHandler.postDelayed(new Runnable(){
      @Override public void run(){
        navigate(mSelectedId);
      }
    }
,250);
    mDrawerLayout.closeDrawers();
  }
  Bundle extras=getIntent().getExtras();
  if (extras != null) {
    int value=extras.getInt("String_Node_Str");
    switchFragment(value);
  }
  mRepoLoader=RepoLoader.getInstance();
  ModuleUtil.getInstance().addListener(this);
  mRepoLoader.addListener(this,false);
  notifyDataSetChanged();
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ThemeUtil.setTheme(this);
  setContentView(R.layout.activity_welcome);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  Toolbar mToolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(mToolbar);
  mNavigationView=(NavigationView)findViewById(R.id.navigation_view);
  mNavigationView.setNavigationItemSelectedListener(this);
  ActionBarDrawerToggle mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,mToolbar,R.string.navigation_drawer_open,R.string.navigation_drawer_close);
  mDrawerLayout.setDrawerListener(mDrawerToggle);
  mDrawerToggle.syncState();
  SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(this);
  mSelectedId=mNavigationView.getMenu().getItem(prefs.getInt("String_Node_Str",0)).getItemId();
  mSelectedId=savedInstanceState == null ? mSelectedId : savedInstanceState.getInt(SELECTED_ITEM_ID);
  mPrevSelectedId=mSelectedId;
  mNavigationView.getMenu().findItem(mSelectedId).setChecked(true);
  if (savedInstanceState == null) {
    mDrawerHandler.removeCallbacksAndMessages(null);
    mDrawerHandler.postDelayed(new Runnable(){
      @Override public void run(){
        navigate(mSelectedId);
      }
    }
,250);
    mDrawerLayout.closeDrawers();
  }
  Bundle extras=getIntent().getExtras();
  if (extras != null) {
    int value=extras.getInt("String_Node_Str",prefs.getInt("String_Node_Str",0));
    switchFragment(value);
  }
  mRepoLoader=RepoLoader.getInstance();
  ModuleUtil.getInstance().addListener(this);
  mRepoLoader.addListener(this,false);
  notifyDataSetChanged();
}