Program: 86240
Project: 86240
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View rootView=inflater.inflate(R.layout.fragment_searchresult_detail,container,false);
  view=rootView;
  findViews();
  toolbar.setVisibility(View.VISIBLE);
  setHasOptionsMenu(false);
  if (getActivity() instanceof SearchResultDetailActivity) {
    toolbar.setNavigationIcon(R.drawable.abc_ic_ab_back_mtrl_am_alpha);
    toolbar.setNavigationOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        getActivity().supportFinishAfterTransition();
      }
    }
);
    back_button_visible=true;
  }
  toolbar.inflateMenu(R.menu.search_result_details_activity);
  refreshMenu(toolbar.getMenu());
  toolbar.setOnMenuItemClickListener(this);
  setRetainInstance(true);
  setProgress();
  scrollView.addCallbacks(this);
  if (getArguments().containsKey(ARG_ITEM_COVER_BITMAP)) {
    Bitmap bitmap=getArguments().getParcelable(ARG_ITEM_COVER_BITMAP);
    ivCover.setImageBitmap(bitmap);
    Palette.generateAsync(bitmap,new Palette.PaletteAsyncListener(){
      @Override public void onGenerated(      Palette palette){
        Palette.Swatch swatch=palette.getDarkVibrantSwatch();
        if (swatch != null) {
          ivCover.setBackgroundColor(swatch.getRgb());
          tint.setBackgroundColor(swatch.getRgb());
        }
      }
    }
);
    analyzeWhitenessOfCoverAsync(bitmap);
    image_analyzed=true;
    showCoverView(true);
  }
 else {
    showCoverView(false);
  }
  fixEllipsize(tvTitel);
  return rootView;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View rootView=inflater.inflate(R.layout.fragment_searchresult_detail,container,false);
  view=rootView;
  findViews();
  toolbar.setVisibility(View.VISIBLE);
  setHasOptionsMenu(false);
  if (getActivity() instanceof SearchResultDetailActivity) {
    toolbar.setNavigationIcon(R.drawable.abc_ic_ab_back_mtrl_am_alpha);
    toolbar.setNavigationOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        getActivity().supportFinishAfterTransition();
      }
    }
);
    back_button_visible=true;
  }
  toolbar.inflateMenu(R.menu.search_result_details_activity);
  refreshMenu(toolbar.getMenu());
  toolbar.setOnMenuItemClickListener(this);
  setRetainInstance(true);
  setProgress();
  scrollView.addCallbacks(this);
  if (getArguments().containsKey(ARG_ITEM_COVER_BITMAP) && !ft.getStatus().equals(AsyncTask.Status.FINISHED)) {
    Bitmap bitmap=getArguments().getParcelable(ARG_ITEM_COVER_BITMAP);
    ivCover.setImageBitmap(bitmap);
    Palette.generateAsync(bitmap,new Palette.PaletteAsyncListener(){
      @Override public void onGenerated(      Palette palette){
        Palette.Swatch swatch=palette.getDarkVibrantSwatch();
        if (swatch != null) {
          ivCover.setBackgroundColor(swatch.getRgb());
          tint.setBackgroundColor(swatch.getRgb());
        }
      }
    }
);
    analyzeWhitenessOfCoverAsync(bitmap);
    image_analyzed=true;
    showCoverView(true);
  }
 else {
    showCoverView(false);
  }
  fixEllipsize(tvTitel);
  return rootView;
}