Program: 37449
Project: 37449
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View view=inflater.inflate(R.layout.fragment_topic_list,container,false);
  initParams();
  if (view instanceof RecyclerView) {
    Context context=view.getContext();
    RecyclerView recyclerView=(RecyclerView)view;
    final LinearLayoutManager layoutManager=new LinearLayoutManager(context);
    recyclerView.setLayoutManager(layoutManager);
    recyclerView.addItemDecoration(new RecyclerView.ItemDecoration(){
      @Override public void getItemOffsets(      Rect outRect,      View view,      RecyclerView parent,      RecyclerView.State state){
        outRect.set(0,0,0,1);
      }
    }
);
    if (mAdapter == null) {
      mAdapter=new TopicListAdapter(mListener);
    }
    recyclerView.setAdapter(mAdapter);
    recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener(){
      @Override public void onScrolled(      RecyclerView recyclerView,      int dx,      int dy){
        if (dy > 0) {
          visibleItemCount=layoutManager.getChildCount();
          totalItemCount=layoutManager.getItemCount();
          pastVisibleItems=layoutManager.findFirstVisibleItemPosition();
          if (mLoadable) {
            if ((visibleItemCount + pastVisibleItems) >= totalItemCount) {
              mLoadable=false;
              if (totalItemCount > ConstantUtil.TOPICS_PER_PAGE && totalItemCount <= 1024) {
                mPresenter.getMoreTopic(totalItemCount / ConstantUtil.TOPICS_PER_PAGE + 1);
              }
 else {
                Toast.makeText(getActivity(),"String_Node_Str",Toast.LENGTH_SHORT).show();
              }
            }
          }
        }
      }
    }
);
  }
  if (!mAdapter.isFilled()) {
    mPresenter.getTopicList();
  }
  return view;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View view=inflater.inflate(R.layout.fragment_topic_list,container,false);
  initParams();
  if (view instanceof RecyclerView) {
    Context context=view.getContext();
    RecyclerView recyclerView=(RecyclerView)view;
    final LinearLayoutManager layoutManager=new LinearLayoutManager(context);
    recyclerView.setLayoutManager(layoutManager);
    recyclerView.addItemDecoration(new RecyclerView.ItemDecoration(){
      @Override public void getItemOffsets(      Rect outRect,      View view,      RecyclerView parent,      RecyclerView.State state){
        outRect.set(0,0,0,1);
      }
    }
);
    if (mAdapter == null) {
      mAdapter=new TopicListAdapter(mListener);
    }
    recyclerView.setAdapter(mAdapter);
    recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener(){
      @Override public void onScrolled(      RecyclerView recyclerView,      int dx,      int dy){
        if (dy > 0) {
          visibleItemCount=layoutManager.getChildCount();
          totalItemCount=layoutManager.getItemCount();
          pastVisibleItems=layoutManager.findFirstVisibleItemPosition();
          if (mLoadable) {
            if ((visibleItemCount + pastVisibleItems) >= totalItemCount) {
              mLoadable=false;
              if (totalItemCount >= ConstantUtil.TOPICS_PER_PAGE && totalItemCount <= 1024) {
                mPresenter.getMoreTopic(totalItemCount / ConstantUtil.TOPICS_PER_PAGE + 1);
              }
 else {
                Toast.makeText(getActivity(),"String_Node_Str",Toast.LENGTH_SHORT).show();
              }
            }
          }
        }
      }
    }
);
  }
  if (!mAdapter.isFilled()) {
    mPresenter.getTopicList();
  }
  return view;
}