Program: 33677
Project: 33677
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");
  }
  mActivityGraph=((TBAAndroid)getApplication()).createScopedGraph(new ViewTeamModule());
  mActivityGraph.inject(this);
  setRefreshEnabled(false);
  setModelKey(mTeamKey,ModelHelper.MODELS.TEAM);
  setContentView(R.layout.activity_view_team);
  Toolbar toolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(toolbar);
  mYearSelectorContainer=findViewById(R.id.year_selector_container);
  mYearSelectorSubtitleContainer=findViewById(R.id.year_selector_subtitle_container);
  mYearSelectorTitle=(TextView)findViewById(R.id.year_selector_title);
  mYearSelectorSubtitle=(TextView)findViewById(R.id.year_selector_subtitle);
  mWarningMessage=(TextView)findViewById(R.id.warning_container);
  hideWarningMessage();
  if (savedInstanceState != null) {
    if (savedInstanceState.containsKey(SELECTED_TAB)) {
      mSelectedTab=savedInstanceState.getInt(SELECTED_TAB);
    }
    if (savedInstanceState.containsKey(SELECTED_YEAR)) {
      mYear=savedInstanceState.getInt(SELECTED_YEAR);
    }
  }
 else {
    if (getIntent() != null && getIntent().getExtras() != null && getIntent().getExtras().containsKey(TEAM_YEAR)) {
      mYear=getIntent().getIntExtra(TEAM_YEAR,Calendar.getInstance().get(Calendar.YEAR));
    }
 else {
      mYear=Calendar.getInstance().get(Calendar.YEAR);
    }
    mCurrentSelectedYearPosition=0;
    mSelectedTab=0;
  }
  ViewPager pager=(ViewPager)findViewById(R.id.view_pager);
  pager.setOffscreenPageLimit(3);
  pager.setPageMargin(Utilities.getPixelsFromDp(this,16));
  final ViewTeamFragmentPagerAdapter adapter=new ViewTeamFragmentPagerAdapter(getSupportFragmentManager(),mTeamKey);
  pager.setAdapter(adapter);
  SlidingTabs tabs=(SlidingTabs)findViewById(R.id.tabs);
  tabs.setViewPager(pager);
  tabs.setOnPageChangeListener(this);
  ViewCompat.setElevation(tabs,getResources().getDimension(R.dimen.toolbar_elevation));
  if (!ConnectionDetector.isConnectedToInternet(this)) {
    showWarningMessage(getString(R.string.warning_unable_to_load));
  }
  new MakeActionBarDropdownForTeam(this).execute(mTeamKey);
  setupActionBar();
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  mTeamKey=getIntent().getStringExtra(TEAM_KEY);
  if (mTeamKey == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  setRefreshEnabled(false);
  setModelKey(mTeamKey,ModelHelper.MODELS.TEAM);
  setContentView(R.layout.activity_view_team);
  Toolbar toolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(toolbar);
  mYearSelectorContainer=findViewById(R.id.year_selector_container);
  mYearSelectorSubtitleContainer=findViewById(R.id.year_selector_subtitle_container);
  mYearSelectorTitle=(TextView)findViewById(R.id.year_selector_title);
  mYearSelectorSubtitle=(TextView)findViewById(R.id.year_selector_subtitle);
  mWarningMessage=(TextView)findViewById(R.id.warning_container);
  hideWarningMessage();
  if (savedInstanceState != null) {
    if (savedInstanceState.containsKey(SELECTED_TAB)) {
      mSelectedTab=savedInstanceState.getInt(SELECTED_TAB);
    }
    if (savedInstanceState.containsKey(SELECTED_YEAR)) {
      mYear=savedInstanceState.getInt(SELECTED_YEAR);
    }
  }
 else {
    if (getIntent() != null && getIntent().getExtras() != null && getIntent().getExtras().containsKey(TEAM_YEAR)) {
      mYear=getIntent().getIntExtra(TEAM_YEAR,Calendar.getInstance().get(Calendar.YEAR));
    }
 else {
      mYear=Calendar.getInstance().get(Calendar.YEAR);
    }
    mCurrentSelectedYearPosition=0;
    mSelectedTab=0;
  }
  ViewPager pager=(ViewPager)findViewById(R.id.view_pager);
  pager.setOffscreenPageLimit(3);
  pager.setPageMargin(Utilities.getPixelsFromDp(this,16));
  final ViewTeamFragmentPagerAdapter adapter=new ViewTeamFragmentPagerAdapter(getSupportFragmentManager(),mTeamKey);
  pager.setAdapter(adapter);
  SlidingTabs tabs=(SlidingTabs)findViewById(R.id.tabs);
  tabs.setViewPager(pager);
  tabs.setOnPageChangeListener(this);
  ViewCompat.setElevation(tabs,getResources().getDimension(R.dimen.toolbar_elevation));
  if (!ConnectionDetector.isConnectedToInternet(this)) {
    showWarningMessage(getString(R.string.warning_unable_to_load));
  }
  new MakeActionBarDropdownForTeam(this).execute(mTeamKey);
  setupActionBar();
}