Program: 13374
Project: 13374
Buggy source:
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ((WordPress)getApplication()).component().inject(this);
  setContentView(R.layout.plugin_browser_activity);
  mViewModel=ViewModelProviders.of(this,mViewModelFactory).get(PluginBrowserViewModel.class);
  mSitePluginsRecycler=findViewById(R.id.installed_plugins_recycler);
  mFeaturedPluginsRecycler=findViewById(R.id.featured_plugins_recycler);
  mPopularPluginsRecycler=findViewById(R.id.popular_plugins_recycler);
  mNewPluginsRecycler=findViewById(R.id.new_plugins_recycler);
  Toolbar toolbar=findViewById(R.id.toolbar);
  setSupportActionBar(toolbar);
  ActionBar actionBar=getSupportActionBar();
  if (actionBar != null) {
    actionBar.setHomeButtonEnabled(true);
    actionBar.setDisplayHomeAsUpEnabled(true);
  }
  if (savedInstanceState == null) {
    mViewModel.setSite((SiteModel)getIntent().getSerializableExtra(WordPress.SITE));
  }
 else {
    mViewModel.readFromBundle(savedInstanceState);
  }
  mViewModel.start();
  if (mViewModel.getSite() == null) {
    ToastUtils.showToast(this,R.string.blog_not_found);
    finish();
    return;
  }
  findViewById(R.id.text_manage).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      showListFragment(PluginListType.SITE);
    }
  }
);
  findViewById(R.id.text_all_featured).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      showListFragment(PluginListType.FEATURED);
    }
  }
);
  findViewById(R.id.text_all_popular).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      showListFragment(PluginListType.POPULAR);
    }
  }
);
  findViewById(R.id.text_all_new).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      showListFragment(PluginListType.NEW);
    }
  }
);
  getSupportFragmentManager().addOnBackStackChangedListener(new FragmentManager.OnBackStackChangedListener(){
    @Override public void onBackStackChanged(){
      if (getSupportFragmentManager().getBackStackEntryCount() == 0) {
        mViewModel.setTitle(getString(R.string.plugins));
      }
    }
  }
);
  configureRecycler(mSitePluginsRecycler);
  configureRecycler(mFeaturedPluginsRecycler);
  configureRecycler(mPopularPluginsRecycler);
  configureRecycler(mNewPluginsRecycler);
  setupObservers();
}

Fixed version (ground truth):
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ((WordPress)getApplication()).component().inject(this);
  setContentView(R.layout.plugin_browser_activity);
  mViewModel=ViewModelProviders.of(this,mViewModelFactory).get(PluginBrowserViewModel.class);
  mSitePluginsRecycler=findViewById(R.id.installed_plugins_recycler);
  mFeaturedPluginsRecycler=findViewById(R.id.featured_plugins_recycler);
  mPopularPluginsRecycler=findViewById(R.id.popular_plugins_recycler);
  mNewPluginsRecycler=findViewById(R.id.new_plugins_recycler);
  Toolbar toolbar=findViewById(R.id.toolbar);
  setSupportActionBar(toolbar);
  ActionBar actionBar=getSupportActionBar();
  if (actionBar != null) {
    actionBar.setHomeButtonEnabled(true);
    actionBar.setDisplayHomeAsUpEnabled(true);
  }
  SiteModel siteModel=(SiteModel)getIntent().getSerializableExtra(WordPress.SITE);
  if (siteModel == null) {
    ToastUtils.showToast(this,R.string.blog_not_found);
    finish();
    return;
  }
  if (savedInstanceState == null) {
    mViewModel.setSite(siteModel);
  }
 else {
    mViewModel.readFromBundle(savedInstanceState);
  }
  mViewModel.start();
  findViewById(R.id.text_manage).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      showListFragment(PluginListType.SITE);
    }
  }
);
  findViewById(R.id.text_all_featured).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      showListFragment(PluginListType.FEATURED);
    }
  }
);
  findViewById(R.id.text_all_popular).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      showListFragment(PluginListType.POPULAR);
    }
  }
);
  findViewById(R.id.text_all_new).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      showListFragment(PluginListType.NEW);
    }
  }
);
  getSupportFragmentManager().addOnBackStackChangedListener(new FragmentManager.OnBackStackChangedListener(){
    @Override public void onBackStackChanged(){
      if (getSupportFragmentManager().getBackStackEntryCount() == 0) {
        mViewModel.setTitle(getString(R.string.plugins));
      }
    }
  }
);
  configureRecycler(mSitePluginsRecycler);
  configureRecycler(mFeaturedPluginsRecycler);
  configureRecycler(mPopularPluginsRecycler);
  configureRecycler(mNewPluginsRecycler);
  setupObservers();
}