Program: 14865
Project: 14865
Buggy source:
@Override public void onActivityCreated(Bundle bundle){
  super.onActivityCreated(bundle);
  getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE);
  mProgressFooterView=View.inflate(getActivity(),R.layout.list_footer_progress,null);
  getListView().addFooterView(mProgressFooterView,null,false);
  mProgressFooterView.setVisibility(View.GONE);
  getListView().setDivider(getResources().getDrawable(R.drawable.list_divider));
  getListView().setDividerHeight(1);
  getListView().setOnItemClickListener(new AdapterView.OnItemClickListener(){
    public void onItemClick(    AdapterView<?> arg0,    View v,    int position,    long id){
      if (position >= getPostListAdapter().getCount())       return;
      if (v == null)       return;
      PostsListPost postsListPost=(PostsListPost)getPostListAdapter().getItem(position);
      if (postsListPost == null)       return;
      if (!mParentActivity.mIsRefreshing) {
        showPost(postsListPost.getPostId());
      }
 else {
        Toast.makeText(mParentActivity,R.string.please_wait_refresh_done,Toast.LENGTH_SHORT).show();
      }
    }
  }
);
  TextView textview=(TextView)getListView().getEmptyView();
  if (textview != null) {
    if (mIsPage) {
      textview.setText(getText(R.string.pages_empty_list));
    }
 else {
      textview.setText(getText(R.string.posts_empty_list));
    }
    textview.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        mParentActivity.newPost();
      }
    }
);
  }
}

Fixed version (ground truth):
@Override public void onActivityCreated(Bundle bundle){
  super.onActivityCreated(bundle);
  getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE);
  mProgressFooterView=View.inflate(getActivity(),R.layout.list_footer_progress,null);
  getListView().addFooterView(mProgressFooterView,null,false);
  mProgressFooterView.setVisibility(View.GONE);
  getListView().setDivider(getResources().getDrawable(R.drawable.list_divider));
  getListView().setDividerHeight(1);
  getListView().setOnItemClickListener(new AdapterView.OnItemClickListener(){
    public void onItemClick(    AdapterView<?> arg0,    View v,    int position,    long id){
      if (position >= getPostListAdapter().getCount())       return;
      if (v == null)       return;
      PostsListPost postsListPost=(PostsListPost)getPostListAdapter().getItem(position);
      if (postsListPost == null)       return;
      if (!mIsFetchingPosts) {
        showPost(postsListPost.getPostId());
      }
 else       if (hasActivity()) {
        Toast.makeText(getActivity(),R.string.please_wait_refresh_done,Toast.LENGTH_SHORT).show();
      }
    }
  }
);
  TextView textview=(TextView)getListView().getEmptyView();
  if (textview != null) {
    if (mIsPage) {
      textview.setText(getText(R.string.pages_empty_list));
    }
 else {
      textview.setText(getText(R.string.posts_empty_list));
    }
    textview.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        if (hasActivity()) {
          PostsActivity postsActivity=(PostsActivity)getActivity();
          postsActivity.newPost();
        }
      }
    }
);
  }
}