Program: 19073
Project: 19073
Buggy source:
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.explore_sessions_act);
  mImageLoader=new ImageLoader(this);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  mHeaderImage=(ImageView)findViewById(R.id.header_image);
  mTitle=(TextView)findViewById(R.id.title);
  mFiltersList=(RecyclerView)findViewById(R.id.filters);
  mTimeSlotLayout=findViewById(R.id.timeslot_view);
  mTimeSlotDivider=findViewById(R.id.timeslot_divider);
  TextView timeSlotTextView=(TextView)findViewById(R.id.timeslot);
  ImageButton dismissTimeSlotButton=(ImageButton)findViewById(R.id.close_timeslot);
  mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow_flipped,GravityCompat.END);
  mFragment=(ExploreSessionsFragment)getFragmentManager().findFragmentById(R.id.explore_sessions_frag);
  if (savedInstanceState != null) {
    mTagFilterHolder=savedInstanceState.getParcelable(STATE_FILTER_TAGS);
    mCurrentUri=savedInstanceState.getParcelable(STATE_CURRENT_URI);
  }
 else   if (getIntent() != null) {
    mCurrentUri=getIntent().getData();
  }
  long[] interval=ScheduleContract.Sessions.getInterval(mCurrentUri);
  if (interval != null) {
    mMode=MODE_TIME_FIT;
    String title=getString(R.string.explore_sessions_time_slot_title,getString(R.string.explore_sessions_show_day_n,UIUtils.startTimeToDayIndex(interval[0])),UIUtils.formatTime(interval[0],this));
    setTitle(title);
    mTimeSlotLayout.setVisibility(View.VISIBLE);
    mTimeSlotDivider.setVisibility(View.VISIBLE);
    timeSlotTextView.setText(title);
    dismissTimeSlotButton.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        mTimeSlotLayout.setVisibility(View.GONE);
        mTimeSlotDivider.setVisibility(View.GONE);
        mMode=MODE_EXPLORE;
        mCurrentUri=null;
        reloadFragment();
      }
    }
);
  }
 else {
    mMode=MODE_EXPLORE;
  }
  Toolbar toolbar=getToolbar();
  toolbar.setNavigationIcon(R.drawable.ic_up);
  toolbar.setNavigationContentDescription(R.string.close_and_go_back);
  toolbar.setNavigationOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      navigateUpOrBack(ExploreSessionsActivity.this,null);
    }
  }
);
  getSupportActionBar().setDisplayShowTitleEnabled(false);
  getLoaderManager().initLoader(TAG_METADATA_TOKEN,null,this);
  AnalyticsHelper.sendScreenView(SCREEN_LABEL);
}

Fixed version (ground truth):
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.explore_sessions_act);
  mImageLoader=new ImageLoader(this);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  mHeaderImage=(ImageView)findViewById(R.id.header_image);
  mTitle=(TextView)findViewById(R.id.title);
  mFiltersList=(RecyclerView)findViewById(R.id.filters);
  mTimeSlotLayout=findViewById(R.id.timeslot_view);
  mTimeSlotDivider=findViewById(R.id.timeslot_divider);
  TextView timeSlotTextView=(TextView)findViewById(R.id.timeslot);
  ImageButton dismissTimeSlotButton=(ImageButton)findViewById(R.id.close_timeslot);
  mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow_flipped,GravityCompat.END);
  mFragment=(ExploreSessionsFragment)getFragmentManager().findFragmentById(R.id.explore_sessions_frag);
  if (savedInstanceState != null) {
    mTagFilterHolder=savedInstanceState.getParcelable(STATE_FILTER_TAGS);
    mCurrentUri=savedInstanceState.getParcelable(STATE_CURRENT_URI);
  }
 else   if (getIntent() != null) {
    mCurrentUri=getIntent().getData();
  }
  long[] interval=ScheduleContract.Sessions.getInterval(mCurrentUri);
  if (interval != null) {
    mMode=MODE_TIME_FIT;
    String title=getString(R.string.explore_sessions_time_slot_title,TimeUtils.getDayName(this,UIUtils.startTimeToDayIndex(interval[0])),UIUtils.formatTime(interval[0],this));
    mTitle.setText(title);
    mHeaderImage.setScaleType(ImageView.ScaleType.FIT_CENTER);
    mHeaderImage.setImageResource(R.drawable.ic_hash_io_16_monochrome);
    mTimeSlotLayout.setVisibility(View.VISIBLE);
    mTimeSlotDivider.setVisibility(View.VISIBLE);
    timeSlotTextView.setText(title);
    dismissTimeSlotButton.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        mTimeSlotLayout.setVisibility(View.GONE);
        mTimeSlotDivider.setVisibility(View.GONE);
        mMode=MODE_EXPLORE;
        mCurrentUri=null;
        reloadFragment();
      }
    }
);
  }
 else {
    mMode=MODE_EXPLORE;
  }
  Toolbar toolbar=getToolbar();
  toolbar.setNavigationIcon(R.drawable.ic_up);
  toolbar.setNavigationContentDescription(R.string.close_and_go_back);
  toolbar.setNavigationOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      navigateUpOrBack(ExploreSessionsActivity.this,null);
    }
  }
);
  getSupportActionBar().setDisplayShowTitleEnabled(false);
  getLoaderManager().initLoader(TAG_METADATA_TOKEN,null,this);
  AnalyticsHelper.sendScreenView(SCREEN_LABEL);
}