Program: 90974
Project: 90974
Buggy source:
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  _mbwManager=MbwManager.getInstance(this);
  WalletApplication.applyLanguageChange(getBaseContext(),_mbwManager.getLanguage());
  mViewPager=new ViewPager(this);
  mViewPager.setId(R.id.pager);
  setContentView(mViewPager);
  ActionBar bar=getSupportActionBar();
  bar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
  bar.setDisplayShowTitleEnabled(false);
  bar.setDisplayShowHomeEnabled(true);
  bar.setIcon(R.drawable.action_bar_logo);
  getWindow().setBackgroundDrawableResource(R.drawable.background_witherrors_dimmed);
  mTabsAdapter=new TabsAdapter(this,mViewPager,_mbwManager);
  mAccountsTab=bar.newTab();
  mTabsAdapter.addTab(mAccountsTab.setText(getString(R.string.tab_accounts)),AccountsFragment.class,null);
  mBalanceTab=bar.newTab();
  mTabsAdapter.addTab(mBalanceTab.setText(getString(R.string.tab_balance)),BalanceMasterFragment.class,null);
  mTabsAdapter.addTab(bar.newTab().setText(getString(R.string.tab_transactions)),TransactionHistoryFragment.class,null);
  mRecommendationsTab=bar.newTab();
  mTabsAdapter.addTab(mRecommendationsTab.setText(getString(R.string.tab_partners)),RecommendationsFragment.class,null);
  final Bundle addressBookConfig=new Bundle();
  addressBookConfig.putBoolean(AddressBookFragment.SELECT_ONLY,false);
  mTabsAdapter.addTab(bar.newTab().setText(getString(R.string.tab_addresses)),AddressBookFragment.class,addressBookConfig);
  addressBookTabIndex=mTabsAdapter.getCount() - 1;
  bar.selectTab(mBalanceTab);
  _toaster=new Toaster(this);
  ChangeLog cl=new DarkThemeChangeLog(this);
  if (cl.isFirstRun() && cl.getChangeLog(false).size() > 0 && !cl.isFirstRunEver()) {
    cl.getLogDialog().show();
  }
  checkTorState();
  if (savedInstanceState != null) {
    _lastSync=savedInstanceState.getLong(LAST_SYNC,0);
    _isAppStart=savedInstanceState.getBoolean(APP_START,true);
  }
  if (_isAppStart) {
    _mbwManager.getVersionManager().showFeatureWarningIfNeeded(this,Feature.APP_START);
    checkGapBug();
    _isAppStart=false;
  }
  BCHHelper.firstBCHPages(this);
  _mbwManager.importLabelsToBch(_mbwManager.getWalletManager(false));
  ModularisationVersionHelper.notifyWrongModuleVersion(this);
}

Fixed version (ground truth):
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  _mbwManager=MbwManager.getInstance(this);
  WalletApplication.applyLanguageChange(getBaseContext(),_mbwManager.getLanguage());
  mViewPager=new ViewPager(this);
  mViewPager.setId(R.id.pager);
  setContentView(mViewPager);
  ActionBar bar=getSupportActionBar();
  bar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
  bar.setDisplayShowTitleEnabled(false);
  bar.setDisplayShowHomeEnabled(true);
  bar.setIcon(R.drawable.action_bar_logo);
  getWindow().setBackgroundDrawableResource(R.drawable.background_main);
  mTabsAdapter=new TabsAdapter(this,mViewPager,_mbwManager);
  mAccountsTab=bar.newTab();
  mTabsAdapter.addTab(mAccountsTab.setText(getString(R.string.tab_accounts)),AccountsFragment.class,null);
  mBalanceTab=bar.newTab();
  mTabsAdapter.addTab(mBalanceTab.setText(getString(R.string.tab_balance)),BalanceMasterFragment.class,null);
  mTabsAdapter.addTab(bar.newTab().setText(getString(R.string.tab_transactions)),TransactionHistoryFragment.class,null);
  mRecommendationsTab=bar.newTab();
  mTabsAdapter.addTab(mRecommendationsTab.setText(getString(R.string.tab_partners)),RecommendationsFragment.class,null);
  final Bundle addressBookConfig=new Bundle();
  addressBookConfig.putBoolean(AddressBookFragment.SELECT_ONLY,false);
  mTabsAdapter.addTab(bar.newTab().setText(getString(R.string.tab_addresses)),AddressBookFragment.class,addressBookConfig);
  addressBookTabIndex=mTabsAdapter.getCount() - 1;
  bar.selectTab(mBalanceTab);
  _toaster=new Toaster(this);
  ChangeLog cl=new DarkThemeChangeLog(this);
  if (cl.isFirstRun() && cl.getChangeLog(false).size() > 0 && !cl.isFirstRunEver()) {
    cl.getLogDialog().show();
  }
  checkTorState();
  if (savedInstanceState != null) {
    _lastSync=savedInstanceState.getLong(LAST_SYNC,0);
    _isAppStart=savedInstanceState.getBoolean(APP_START,true);
  }
  if (_isAppStart) {
    _mbwManager.getVersionManager().showFeatureWarningIfNeeded(this,Feature.APP_START);
    checkGapBug();
    _isAppStart=false;
  }
  BCHHelper.firstBCHPages(this);
  _mbwManager.importLabelsToBch(_mbwManager.getWalletManager(false));
  ModularisationVersionHelper.notifyWrongModuleVersion(this);
}