Program: 35206
Project: 35206
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setTitle("String_Node_Str");
  mContext=this;
  getActionBar().setDisplayHomeAsUpEnabled(true);
  setContentView(R.layout.activity_myposts);
  mListView=(ListView)findViewById(R.id.listView);
  final String uid=Athority.getSharedPreference().getString("String_Node_Str","String_Node_Str");
  TaskUtils.executeAsyncTask(new AsyncTask<String,Void,ArrayList<BasePost>>(){
    @Override protected ArrayList<BasePost> doInBackground(    String... params){
      ArrayList<BasePost> posts=new ArrayList<BasePost>();
      Document doc=null;
      Connection.Response response=Request.execute(String.format(Api.MY_COLLECTIONS,uid),Api.USER_AGENT,(Map<String,String>)Athority.getSharedPreference().getAll(),Connection.Method.GET);
      try {
        doc=response.parse();
        Elements threadlists=doc.getElementsByClass("String_Node_Str");
        String str_tid="String_Node_Str";
        String title="String_Node_Str";
        String time="String_Node_Str";
        String comment_count="String_Node_Str";
        int haveimg=0;
        int tid=0;
        String author="String_Node_Str";
        BasePost post;
        for (        Element threadlist : threadlists) {
          Elements as=threadlist.getElementsByTag("String_Node_Str");
          for (          Element a : as) {
            String start="String_Node_Str";
            String len="String_Node_Str";
            String url=a.attr("String_Node_Str");
            str_tid=url.substring(start.length() - 1,url.length() - len.length() + 1);
            tid=Integer.valueOf(str_tid);
            title=a.text();
            post=new Post(0,tid,0,title,"String_Node_Str",time,haveimg,0,author,null);
            posts.add(post);
          }
        }
      }
 catch (      IOException e) {
        e.printStackTrace();
      }
      return posts;
    }
    @Override protected void onPostExecute(    ArrayList<BasePost> posts){
      super.onPostExecute(posts);
      MyPostsAdapter myPostsAdapter=new MyPostsAdapter(mContext,posts,mListView);
      mListView.setAdapter(myPostsAdapter);
    }
  }
);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setTitle("String_Node_Str");
  mContext=this;
  getActionBar().setDisplayHomeAsUpEnabled(true);
  setContentView(R.layout.activity_myposts);
  mListView=(ListView)findViewById(R.id.listView);
  final String uid=Athority.getSharedPreference().getString("String_Node_Str","String_Node_Str");
  mListView.setOnScrollListener(new AbsListView.OnScrollListener(){
    @Override public void onScrollStateChanged(    AbsListView absListView,    int scrollState){
switch (scrollState) {
case AbsListView.OnScrollListener.SCROLL_STATE_IDLE:
        if (mListView.getLastVisiblePosition() == (mListView.getCount() - 1)) {
          TaskUtils.executeAsyncTask(new AsyncTask<String,Void,ArrayList<BasePost>>(){
            @Override protected ArrayList<BasePost> doInBackground(            String... params){
              Document doc=null;
              String post_url=String.format(Api.MY_COLLECTIONS,uid) + "String_Node_Str" + String.valueOf(page);
              Connection.Response response=Request.execute(post_url,Api.USER_AGENT,(Map<String,String>)Athority.getSharedPreference().getAll(),Connection.Method.GET);
              try {
                doc=response.parse();
                Elements threadlists=doc.getElementsByClass("String_Node_Str");
                if (!threadlists.text().equals("String_Node_Str")) {
                  String str_tid="String_Node_Str";
                  String title="String_Node_Str";
                  String time="String_Node_Str";
                  String comment_count="String_Node_Str";
                  int haveimg=0;
                  int tid=0;
                  String author="String_Node_Str";
                  BasePost post;
                  for (                  Element threadlist : threadlists) {
                    Elements as=threadlist.getElementsByTag("String_Node_Str");
                    for (                    Element a : as) {
                      String start="String_Node_Str";
                      String len="String_Node_Str";
                      String url=a.attr("String_Node_Str");
                      str_tid=url.substring(start.length() - 1,url.length() - len.length() + 1);
                      tid=Integer.valueOf(str_tid);
                      title=a.text();
                      post=new Post(0,tid,0,title,"String_Node_Str",time,haveimg,0,author,null);
                      posts.add(post);
                    }
                  }
                  page++;
                }
              }
 catch (              IOException e) {
                e.printStackTrace();
              }
              return posts;
            }
            @Override protected void onPostExecute(            ArrayList<BasePost> posts){
              super.onPostExecute(posts);
              myPostsAdapter.refresh(posts);
            }
          }
);
        }
      if (mListView.getFirstVisiblePosition() == 0) {
      }
    break;
}
}
@Override public void onScroll(AbsListView view,int firstVisibleItem,int visibleItemCount,int totalItemCount){
}
}
);
TaskUtils.executeAsyncTask(new AsyncTask<String,Void,ArrayList<BasePost>>(){
@Override protected ArrayList<BasePost> doInBackground(String... params){
ArrayList<BasePost> posts=new ArrayList<BasePost>();
Document doc=null;
Connection.Response response=Request.execute(String.format(Api.MY_COLLECTIONS,uid),Api.USER_AGENT,(Map<String,String>)Athority.getSharedPreference().getAll(),Connection.Method.GET);
try {
  doc=response.parse();
  Elements threadlists=doc.getElementsByClass("String_Node_Str");
  String str_tid="String_Node_Str";
  String title="String_Node_Str";
  String time="String_Node_Str";
  String comment_count="String_Node_Str";
  int haveimg=0;
  int tid=0;
  String author="String_Node_Str";
  BasePost post;
  for (  Element threadlist : threadlists) {
    Elements as=threadlist.getElementsByTag("String_Node_Str");
    for (    Element a : as) {
      String start="String_Node_Str";
      String len="String_Node_Str";
      String url=a.attr("String_Node_Str");
      str_tid=url.substring(start.length() - 1,url.length() - len.length() + 1);
      tid=Integer.valueOf(str_tid);
      title=a.text();
      post=new Post(0,tid,0,title,"String_Node_Str",time,haveimg,0,author,null);
      posts.add(post);
    }
  }
}
 catch (IOException e) {
  e.printStackTrace();
}
return posts;
}
@Override protected void onPostExecute(ArrayList<BasePost> posts){
super.onPostExecute(posts);
myPostsAdapter=new MyPostsAdapter(mContext,posts,mListView);
mListView.setAdapter(myPostsAdapter);
}
}
);
}