Program: 33594
Project: 33594
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  mTeamKey=getIntent().getStringExtra(TEAM_KEY);
  if (mTeamKey == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  setModelKey(mTeamKey,ModelType.TEAM);
  setContentView(R.layout.activity_view_team);
  ButterKnife.bind(this);
  Toolbar toolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(toolbar);
  if (savedInstanceState != null) {
    if (savedInstanceState.containsKey(SELECTED_TAB)) {
      mSelectedTab=savedInstanceState.getInt(SELECTED_TAB);
    }
    if (savedInstanceState.containsKey(SELECTED_YEAR)) {
      mYear=savedInstanceState.getInt(SELECTED_YEAR);
    }
  }
 else {
    int maxYear=mStatusController.getMaxCompYear();
    if (getIntent() != null && getIntent().getExtras() != null && getIntent().getExtras().containsKey(TEAM_YEAR)) {
      mYear=getIntent().getIntExtra(TEAM_YEAR,maxYear);
    }
 else {
      mYear=maxYear;
    }
    mSelectedTab=0;
  }
  mPager.setOffscreenPageLimit(3);
  mPager.setPageMargin(Utilities.getPixelsFromDp(this,16));
  mAdapter=new ViewTeamFragmentPagerAdapter(getSupportFragmentManager(),mTeamKey,mYear);
  mPager.setAdapter(mAdapter);
  SlidingTabs tabs=(SlidingTabs)findViewById(R.id.tabs);
  tabs.setViewPager(mPager);
  tabs.setOnPageChangeListener(this);
  ViewCompat.setElevation(tabs,getResources().getDimension(R.dimen.toolbar_elevation));
  if (!ConnectionDetector.isConnectedToInternet(this)) {
    showWarningMessage(BaseActivity.WARNING_OFFLINE);
  }
  getComponent().datafeed().fetchTeamYearsParticipated(mTeamKey,null).subscribeOn(Schedulers.io()).observeOn(Schedulers.computation()).subscribe(new YearsParticipatedDropdownSubscriber(this));
  setupActionBar();
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  mTeamKey=getIntent().getStringExtra(EXTRA_TEAM_KEY);
  if (mTeamKey == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  setModelKey(mTeamKey,ModelType.TEAM);
  setContentView(R.layout.activity_view_team);
  ButterKnife.bind(this);
  Toolbar toolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(toolbar);
  if (savedInstanceState != null) {
    if (savedInstanceState.containsKey(SELECTED_TAB)) {
      mSelectedTab=savedInstanceState.getInt(SELECTED_TAB);
    }
    if (savedInstanceState.containsKey(SELECTED_YEAR)) {
      mYear=savedInstanceState.getInt(SELECTED_YEAR);
    }
    if (savedInstanceState.containsKey(CURRENT_PHOTO_URI)) {
      mCurrentPhotoUri=savedInstanceState.getString(CURRENT_PHOTO_URI);
    }
  }
 else {
    int maxYear=mStatusController.getMaxCompYear();
    if (getIntent() != null && getIntent().getExtras() != null && getIntent().getExtras().containsKey(TEAM_YEAR)) {
      mYear=getIntent().getIntExtra(TEAM_YEAR,maxYear);
    }
 else {
      mYear=maxYear;
    }
    mSelectedTab=0;
  }
  mPager.setOffscreenPageLimit(3);
  mPager.setPageMargin(Utilities.getPixelsFromDp(this,16));
  mAdapter=new ViewTeamFragmentPagerAdapter(getSupportFragmentManager(),mTeamKey,mYear);
  mPager.setAdapter(mAdapter);
  SlidingTabs tabs=(SlidingTabs)findViewById(R.id.tabs);
  tabs.setViewPager(mPager);
  tabs.setOnPageChangeListener(this);
  ViewCompat.setElevation(tabs,getResources().getDimension(R.dimen.toolbar_elevation));
  if (!ConnectionDetector.isConnectedToInternet(this)) {
    showWarningMessage(BaseActivity.WARNING_OFFLINE);
  }
  getComponent().datafeed().fetchTeamYearsParticipated(mTeamKey,null).subscribeOn(Schedulers.io()).observeOn(Schedulers.computation()).subscribe(new YearsParticipatedDropdownSubscriber(this));
  setupActionBar();
}