Program: 62586
Project: 62586
Buggy source:
@Override protected void initEventAndData(){
  isInnerFragment=true;
  setRefresh();
  Bundle bundle=getArguments();
  mKnowledgeHierarchyData=((KnowledgeHierarchyData)bundle.getSerializable(Constants.ARG_PARAM1));
  if (mKnowledgeHierarchyData == null) {
    return;
  }
  mCurrentPage=0;
  mPresenter.getKnowledgeHierarchyDetailData(mCurrentPage,mKnowledgeHierarchyData.getId());
  mAdapter=new ArticleListAdapter(R.layout.item_search_pager,mArticles);
  mAdapter.setOnItemClickListener((adapter,view,position) -> {
    articlePosition=position;
    JudgeUtils.startArticleDetailActivity(_mActivity,mAdapter.getData().get(position).getId(),mAdapter.getData().get(position).getTitle().trim(),mAdapter.getData().get(position).getLink().trim(),mAdapter.getData().get(position).isCollect(),false,false);
  }
);
  mAdapter.setOnItemChildClickListener((adapter,view,position) -> {
    if (!mDataManager.getLoginStatus()) {
      startActivity(new Intent(_mActivity,LoginActivity.class));
      CommonUtils.showMessage(_mActivity,getString(R.string.login_tint));
      return;
    }
    if (mAdapter.getData().get(position).isCollect()) {
      mPresenter.cancelCollectArticle(position,mAdapter.getData().get(position));
    }
 else {
      mPresenter.addCollectArticle(position,mAdapter.getData().get(position));
    }
  }
);
  mRecyclerView.setAdapter(mAdapter);
  mRecyclerView.setLayoutManager(new LinearLayoutManager(_mActivity));
  RxBus.getDefault().toFlowable(CollectSuccessEvent.class).filter(collectSuccessEvent -> mAdapter != null).subscribe(collectSuccessEvent -> {
    mAdapter.getData().get(articlePosition).setCollect(true);
    mAdapter.setData(articlePosition,mAdapter.getData().get(articlePosition));
  }
);
  RxBus.getDefault().toFlowable(CancelCollectSuccessEvent.class).filter(collectSuccessEvent -> mAdapter != null).subscribe(collectSuccessEvent -> {
    mAdapter.getData().get(articlePosition).setCollect(false);
    mAdapter.setData(articlePosition,mAdapter.getData().get(articlePosition));
  }
);
  RxBus.getDefault().toFlowable(KnowledgeJumpTopEvent.class).filter(knowledgeJumpTopEvent -> mRecyclerView != null).subscribe(knowledgeJumpTopEvent -> mRecyclerView.smoothScrollToPosition(0));
  RxBus.getDefault().toFlowable(ReloadDetailEvent.class).filter(reloadEvent -> mRefreshLayout != null).subscribe(reloadEvent -> mRefreshLayout.autoRefresh());
}

Fixed version (ground truth):
@Override protected void initEventAndData(){
  isInnerFragment=true;
  setRefresh();
  Bundle bundle=getArguments();
  mKnowledgeHierarchyData=((KnowledgeHierarchyData)bundle.getSerializable(Constants.ARG_PARAM1));
  if (mKnowledgeHierarchyData == null) {
    return;
  }
  mCurrentPage=0;
  mPresenter.getKnowledgeHierarchyDetailData(mCurrentPage,mKnowledgeHierarchyData.getId());
  mAdapter=new ArticleListAdapter(R.layout.item_search_pager,mArticles);
  mAdapter.setOnItemClickListener((adapter,view,position) -> {
    articlePosition=position;
    JudgeUtils.startArticleDetailActivity(_mActivity,mAdapter.getData().get(position).getId(),mAdapter.getData().get(position).getTitle().trim(),mAdapter.getData().get(position).getLink().trim(),mAdapter.getData().get(position).isCollect(),false,false);
  }
);
  mAdapter.setOnItemChildClickListener((adapter,view,position) -> {
    if (!mDataManager.getLoginStatus()) {
      startActivity(new Intent(_mActivity,LoginActivity.class));
      CommonUtils.showMessage(_mActivity,getString(R.string.login_tint));
      return;
    }
    if (mAdapter.getData().get(position).isCollect()) {
      mPresenter.cancelCollectArticle(position,mAdapter.getData().get(position));
    }
 else {
      mPresenter.addCollectArticle(position,mAdapter.getData().get(position));
    }
  }
);
  mRecyclerView.setAdapter(mAdapter);
  mRecyclerView.setLayoutManager(new LinearLayoutManager(_mActivity));
  RxBus.getDefault().toFlowable(CollectSuccessEvent.class).filter(collectSuccessEvent -> mAdapter != null && mAdapter.getData().size() > articlePosition).subscribe(collectSuccessEvent -> {
    mAdapter.getData().get(articlePosition).setCollect(true);
    mAdapter.setData(articlePosition,mAdapter.getData().get(articlePosition));
  }
);
  RxBus.getDefault().toFlowable(CancelCollectSuccessEvent.class).filter(collectSuccessEvent -> mAdapter != null && mAdapter.getData().size() > articlePosition).subscribe(collectSuccessEvent -> {
    mAdapter.getData().get(articlePosition).setCollect(false);
    mAdapter.setData(articlePosition,mAdapter.getData().get(articlePosition));
  }
);
  RxBus.getDefault().toFlowable(KnowledgeJumpTopEvent.class).filter(knowledgeJumpTopEvent -> mRecyclerView != null).subscribe(knowledgeJumpTopEvent -> mRecyclerView.smoothScrollToPosition(0));
  RxBus.getDefault().toFlowable(ReloadDetailEvent.class).filter(reloadEvent -> mRefreshLayout != null).subscribe(reloadEvent -> mRefreshLayout.autoRefresh());
}