Program: 60752
Project: 60752
Buggy source:
@Nullable @Override public View onCreateView2(LayoutInflater inflater,@Nullable ViewGroup container,@Nullable Bundle savedInstanceState){
  View view=inflater.inflate(R.layout.scene_favorites,container,false);
  ContentLayout contentLayout=(ContentLayout)view.findViewById(R.id.content_layout);
  mDrawerLayout=(EhDrawerLayout)ViewUtils.$$(getActivity2(),R.id.draw_view);
  mRecyclerView=contentLayout.getRecyclerView();
  FastScroller fastScroller=contentLayout.getFastScroller();
  RefreshLayout refreshLayout=contentLayout.getRefreshLayout();
  mSearchBar=(SearchBar)ViewUtils.$$(view,R.id.search_bar);
  mFabLayout=(FabLayout)ViewUtils.$$(view,R.id.fab_layout);
  Context context=getContext2();
  Assert.assertNotNull(context);
  Resources resources=context.getResources();
  int paddingTopSB=resources.getDimensionPixelOffset(R.dimen.gallery_padding_top_search_bar);
  mHelper=new FavoritesHelper();
  mHelper.setEmptyString(resources.getString(R.string.gallery_list_empty_hit));
  contentLayout.setHelper(mHelper);
  contentLayout.getFastScroller().setOnDragHandlerListener(this);
  mAdapter=new FavoritesAdapter(inflater,resources,mRecyclerView,Settings.getListMode());
  mRecyclerView.setSelector(Ripple.generateRippleDrawable(context,false));
  mRecyclerView.setDrawSelectorOnTop(true);
  mRecyclerView.hasFixedSize();
  mRecyclerView.setClipToPadding(false);
  mRecyclerView.setOnItemClickListener(this);
  mRecyclerView.setOnItemLongClickListener(this);
  mRecyclerView.setChoiceMode(EasyRecyclerView.CHOICE_MODE_MULTIPLE_CUSTOM);
  mRecyclerView.setCustomCheckedListener(this);
  fastScroller.setPadding(fastScroller.getPaddingLeft(),fastScroller.getPaddingTop() + paddingTopSB,fastScroller.getPaddingRight(),fastScroller.getPaddingBottom());
  refreshLayout.setHeaderTranslationY(paddingTopSB);
  mLeftDrawable=new DrawerArrowDrawable(context);
  mSearchBar.setLeftDrawable(mLeftDrawable);
  mSearchBar.setRightDrawable(DrawableManager.getDrawable(context,R.drawable.v_magnify_x24));
  mSearchBar.setHelper(this);
  mSearchBar.setAllowEmptySearch(false);
  updateSearchBar();
  mSearchBarMover=new SearchBarMover(this,mSearchBar,mRecyclerView);
  mFabLayout.setExpanded(false,false);
  mFabLayout.setAutoCancel(false);
  mFabLayout.setHidePrimaryFab(true);
  mFabLayout.setOnClickFabListener(this);
  addAboveSnackView(mFabLayout);
  if (mSearchMode) {
    mSearchMode=false;
    enterSearchMode(false);
  }
  if (!mHasFirstRefresh) {
    mHasFirstRefresh=true;
    mHelper.firstRefresh();
  }
  guideCollections();
  return view;
}

Fixed version (ground truth):
@Nullable @Override public View onCreateView2(LayoutInflater inflater,@Nullable ViewGroup container,@Nullable Bundle savedInstanceState){
  View view=inflater.inflate(R.layout.scene_favorites,container,false);
  ContentLayout contentLayout=(ContentLayout)view.findViewById(R.id.content_layout);
  MainActivity activity=getActivity2();
  Assert.assertNotNull(activity);
  mDrawerLayout=(EhDrawerLayout)ViewUtils.$$(activity,R.id.draw_view);
  mRecyclerView=contentLayout.getRecyclerView();
  FastScroller fastScroller=contentLayout.getFastScroller();
  RefreshLayout refreshLayout=contentLayout.getRefreshLayout();
  mSearchBar=(SearchBar)ViewUtils.$$(view,R.id.search_bar);
  mFabLayout=(FabLayout)ViewUtils.$$(view,R.id.fab_layout);
  Context context=getContext2();
  Assert.assertNotNull(context);
  Resources resources=context.getResources();
  int paddingTopSB=resources.getDimensionPixelOffset(R.dimen.gallery_padding_top_search_bar);
  mHelper=new FavoritesHelper();
  mHelper.setEmptyString(resources.getString(R.string.gallery_list_empty_hit));
  contentLayout.setHelper(mHelper);
  contentLayout.getFastScroller().setOnDragHandlerListener(this);
  mAdapter=new FavoritesAdapter(inflater,resources,mRecyclerView,Settings.getListMode());
  mRecyclerView.setSelector(Ripple.generateRippleDrawable(context,false));
  mRecyclerView.setDrawSelectorOnTop(true);
  mRecyclerView.hasFixedSize();
  mRecyclerView.setClipToPadding(false);
  mRecyclerView.setOnItemClickListener(this);
  mRecyclerView.setOnItemLongClickListener(this);
  mRecyclerView.setChoiceMode(EasyRecyclerView.CHOICE_MODE_MULTIPLE_CUSTOM);
  mRecyclerView.setCustomCheckedListener(this);
  fastScroller.setPadding(fastScroller.getPaddingLeft(),fastScroller.getPaddingTop() + paddingTopSB,fastScroller.getPaddingRight(),fastScroller.getPaddingBottom());
  refreshLayout.setHeaderTranslationY(paddingTopSB);
  mLeftDrawable=new DrawerArrowDrawable(context);
  mSearchBar.setLeftDrawable(mLeftDrawable);
  mSearchBar.setRightDrawable(DrawableManager.getDrawable(context,R.drawable.v_magnify_x24));
  mSearchBar.setHelper(this);
  mSearchBar.setAllowEmptySearch(false);
  updateSearchBar();
  mSearchBarMover=new SearchBarMover(this,mSearchBar,mRecyclerView);
  mFabLayout.setExpanded(false,false);
  mFabLayout.setAutoCancel(false);
  mFabLayout.setHidePrimaryFab(true);
  mFabLayout.setOnClickFabListener(this);
  addAboveSnackView(mFabLayout);
  if (mSearchMode) {
    mSearchMode=false;
    enterSearchMode(false);
  }
  if (!mHasFirstRefresh) {
    mHasFirstRefresh=true;
    mHelper.firstRefresh();
  }
  guideCollections();
  return view;
}