Program: 91089
Project: 91089
Buggy source:
@Override public void onActivityResult(final int requestCode,final int resultCode,final Intent intent){
  ActivityCompat.invalidateOptionsMenu(getActivity());
  if (requestCode == ADD_RECORD_RESULT_CODE && resultCode == AddCoinapultAccountActivity.RESULT_COINAPULT) {
    UUID accountId=(UUID)intent.getSerializableExtra(AddAccountActivity.RESULT_KEY);
    CoinapultAccount account=(CoinapultAccount)_mbwManager.getWalletManager(false).getAccount(accountId);
    _mbwManager.setSelectedAccount(accountId);
    accountListAdapter.setFocusedAccount(account);
    updateIncludingMenus();
  }
 else   if (requestCode == ADD_RECORD_RESULT_CODE && resultCode == Activity.RESULT_OK) {
    UUID accountid=(UUID)intent.getSerializableExtra(AddAccountActivity.RESULT_KEY);
    WalletAccount account=_mbwManager.getWalletManager(false).getAccount(accountid);
    if (account.isActive()) {
      _mbwManager.setSelectedAccount(accountid);
    }
    accountListAdapter.setFocusedAccount(account);
    update();
    if (!(account instanceof ColuAccount)) {
      setNameForNewAccount(account);
    }
  }
 else   if (requestCode == ADD_RECORD_RESULT_CODE && resultCode == AddAdvancedAccountActivity.RESULT_MSG) {
    new AlertDialog.Builder(getActivity()).setMessage(intent.getStringExtra(AddAccountActivity.RESULT_MSG)).setPositiveButton(R.string.button_ok,null).create().show();
  }
 else {
    super.onActivityResult(requestCode,resultCode,intent);
  }
}

Fixed version (ground truth):
@Override public void onActivityResult(final int requestCode,final int resultCode,final Intent intent){
  ActivityCompat.invalidateOptionsMenu(getActivity());
  if (requestCode == ADD_RECORD_RESULT_CODE && resultCode == AddCoinapultAccountActivity.RESULT_COINAPULT) {
    UUID accountId=(UUID)intent.getSerializableExtra(AddAccountActivity.RESULT_KEY);
    CoinapultAccount account=(CoinapultAccount)_mbwManager.getWalletManager(false).getAccount(accountId);
    _mbwManager.setSelectedAccount(accountId);
    accountListAdapter.setFocusedAccount(account);
    updateIncludingMenus();
  }
 else   if (requestCode == ADD_RECORD_RESULT_CODE && resultCode == Activity.RESULT_OK) {
    UUID accountid=(UUID)intent.getSerializableExtra(AddAccountActivity.RESULT_KEY);
    WalletManager walletManager=_mbwManager.getWalletManager(false);
    WalletAccount account=walletManager.getAccount(accountid);
    if (account.isActive()) {
      _mbwManager.setSelectedAccount(accountid);
    }
    accountListAdapter.setFocusedAccount(account);
    updateIncludingMenus();
    if (!(account instanceof ColuAccount) && !intent.getBooleanExtra(AddAccountActivity.IS_UPGRADE,false)) {
      setNameForNewAccount(account);
    }
    _mbwManager.getEventBus().post(new ExtraAccountsChanged());
    _mbwManager.getEventBus().post(new AccountChanged(accountid));
  }
 else   if (requestCode == ADD_RECORD_RESULT_CODE && resultCode == AddAdvancedAccountActivity.RESULT_MSG) {
    new AlertDialog.Builder(getActivity()).setMessage(intent.getStringExtra(AddAccountActivity.RESULT_MSG)).setPositiveButton(R.string.button_ok,null).create().show();
  }
 else {
    super.onActivityResult(requestCode,resultCode,intent);
  }
}