Program: 39422
Project: 39422
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  recordManager=new RecordManager(getActivity());
  View view=inflater.inflate(R.layout.record_frg_layout,container,false);
  backGround=view.findViewById(R.id.background);
  mAddRecordBt=(FloatingActionButton)view.findViewById(R.id.add_new_record);
  mAddRecordBt.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      Intent intent=new Intent(getActivity(),CreateOrEditRecordActivity.class);
      getActivity().startActivityForResult(intent,MainActivity.REQUEST_RECORD);
    }
  }
);
  View foot=View.inflate(getActivity(),R.layout.record_foot,null);
  if (MyAVUser.getCurrentUser() != null) {
    DateFormat format1=new SimpleDateFormat("String_Node_Str");
    foot.setVisibility(View.VISIBLE);
    Date date=MyAVUser.getCurrentUser().getCreatedAt();
    footTv=((TextView)foot.findViewById(R.id.foot_tip));
    footTv.setText(format1.format(date) + "String_Node_Str");
  }
 else {
    foot.setVisibility(View.GONE);
  }
  recordLv=(ListView)view.findViewById(R.id.record_lv);
  recordLv.addFooterView(foot);
  recordDetailDOs=new ArrayList<>();
  mRecordAdapter=new RecordAdapter(getActivity(),recordDetailDOs);
  recordLv.setAdapter(mRecordAdapter);
  recordLv.setOverScrollMode(View.OVER_SCROLL_NEVER);
  loadData();
  recordLv.setOnScrollListener(new AbsListView.OnScrollListener(){
    @Override public void onScrollStateChanged(    AbsListView view,    int scrollState){
    }
    @Override public void onScroll(    AbsListView view,    int firstVisibleItem,    int visibleItemCount,    int totalItemCount){
      if (totalItemCount == 0)       return;
      if (firstVisibleItem + visibleItemCount == totalItemCount && !isRefresh) {
        loadData();
      }
    }
  }
);
  ((MainActivity)getActivity()).setReloadRecordCallBack(this);
  return view;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  recordManager=new RecordManager(getActivity());
  View view=inflater.inflate(R.layout.record_frg_layout,container,false);
  backGround=view.findViewById(R.id.background);
  mAddRecordBt=(FloatingActionButton)view.findViewById(R.id.add_new_record);
  mAddRecordBt.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      Intent intent=new Intent(getActivity(),CreateOrEditRecordActivity.class);
      getActivity().startActivityForResult(intent,MainActivity.REQUEST_RECORD);
    }
  }
);
  foot=View.inflate(getActivity(),R.layout.record_foot,null);
  footTv=((TextView)foot.findViewById(R.id.foot_tip));
  recordLv=(ListView)view.findViewById(R.id.record_lv);
  recordLv.addFooterView(foot);
  recordDetailDOs=new ArrayList<>();
  mRecordAdapter=new RecordAdapter(getActivity(),recordDetailDOs);
  recordLv.setAdapter(mRecordAdapter);
  recordLv.setOverScrollMode(View.OVER_SCROLL_NEVER);
  loadData();
  recordLv.setOnScrollListener(new AbsListView.OnScrollListener(){
    @Override public void onScrollStateChanged(    AbsListView view,    int scrollState){
    }
    @Override public void onScroll(    AbsListView view,    int firstVisibleItem,    int visibleItemCount,    int totalItemCount){
      if (totalItemCount == 0)       return;
      if (firstVisibleItem + visibleItemCount == totalItemCount && !isRefresh) {
        loadData();
      }
    }
  }
);
  ((MainActivity)getActivity()).setReloadRecordCallBack(this);
  return view;
}