Program: 163134
Project: 163134
Buggy source:
private void createBottom(Bundle savedInstanceState){
  mBottomBar=BottomBar.attachShy((CoordinatorLayout)findViewById(R.id.coordinator),findViewById(R.id.content),savedInstanceState);
  mBottomBar.useOnlyStatusBarTopOffset();
  final List<Fragment> fragments=new ArrayList<>();
  PullRequestConversationFragment overviewFragment=PullRequestConversationFragment.newInstance(issueInfo);
  overviewFragment.setPullRequestStoryLoaderInterface(this);
  fragments.add(overviewFragment);
  infoFragment=PullRequestInfoFragment.newInstance(issueInfo);
  fragments.add(infoFragment);
  fragments.add(PullRequestFilesListFragment.newInstance(issueInfo));
  fragments.add(PullRequestCommitsListFragment.newInstance(issueInfo));
  mBottomBar.setItems(new BottomBarTab(getBottomTabIcon(Octicons.Icon.oct_comment_discussion),"String_Node_Str"),new BottomBarTab(getBottomTabIcon(Octicons.Icon.oct_info),"String_Node_Str"),new BottomBarTab(getBottomTabIcon(Octicons.Icon.oct_file_code),"String_Node_Str"),new BottomBarTab(getBottomTabIcon(Octicons.Icon.oct_git_commit),"String_Node_Str"));
  mBottomBar.setDefaultTabPosition(0);
  mBottomBar.setActiveTabColor(AttributesUtils.getPrimaryColor(this));
  mBottomBar.setOnTabClickListener(new OnTabClickListener(){
    @Override public void onTabSelected(    int position){
      selectItem(position);
    }
    private void selectItem(    int position){
      selectFragment(fragments.get(position));
    }
    @Override public void onTabReSelected(    int position){
      selectItem(position);
    }
  }
);
  SharedPreferences defaultSharedPreferences=PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
  String pref_theme=defaultSharedPreferences.getString("String_Node_Str",getString(R.string.theme_light));
  mBottomBar.useDarkTheme("String_Node_Str".equalsIgnoreCase(pref_theme));
}

Fixed version (ground truth):
private void createBottom(Bundle savedInstanceState){
  mBottomBar=BottomBar.attachShy((CoordinatorLayout)findViewById(R.id.coordinator),findViewById(R.id.content),savedInstanceState);
  mBottomBar.useOnlyStatusBarTopOffset();
  final List<Fragment> fragments=new ArrayList<>();
  PullRequestConversationFragment overviewFragment=PullRequestConversationFragment.newInstance(issueInfo);
  overviewFragment.setPullRequestStoryLoaderInterface(this);
  fragments.add(overviewFragment);
  infoFragment=PullRequestInfoFragment.newInstance(issueInfo);
  fragments.add(infoFragment);
  fragments.add(PullRequestFilesListFragment.newInstance(issueInfo));
  fragments.add(PullRequestCommitsListFragment.newInstance(issueInfo));
  mBottomBar.setItems(new BottomBarTab(getBottomTabIcon(Octicons.Icon.oct_comment_discussion),"String_Node_Str"),new BottomBarTab(getBottomTabIcon(Octicons.Icon.oct_info),"String_Node_Str"),new BottomBarTab(getBottomTabIcon(Octicons.Icon.oct_file_code),"String_Node_Str"),new BottomBarTab(getBottomTabIcon(Octicons.Icon.oct_git_commit),"String_Node_Str"));
  mBottomBar.setDefaultTabPosition(0);
  mBottomBar.setOnTabClickListener(new OnTabClickListener(){
    @Override public void onTabSelected(    int position){
      selectItem(position);
    }
    private void selectItem(    int position){
      selectFragment(fragments.get(position));
    }
    @Override public void onTabReSelected(    int position){
      selectItem(position);
    }
  }
);
  SharedPreferences defaultSharedPreferences=PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
  String pref_theme=defaultSharedPreferences.getString("String_Node_Str",getString(R.string.theme_light));
  mBottomBar.useDarkTheme("String_Node_Str".equalsIgnoreCase(pref_theme));
}