Program: 35208
Project: 35208
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_POSTS,uid),Api.USER_AGENT,(Map<String,String>)Athority.getSharedPreference().getAll(),Connection.Method.GET);
      try {
        doc=response.parse();
        Elements bm_cs=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=Athority.getSharedPreference().getString("String_Node_Str","String_Node_Str");
        BasePost post;
        for (        Element bm_c : bm_cs) {
          Elements as=bm_c.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();
          }
          Elements xg1s=bm_c.getElementsByClass("String_Node_Str");
          comment_count=xg1s.text().substring("String_Node_Str".length());
          post=new Post(0,tid,0,title,"String_Node_Str",time,haveimg,Integer.valueOf(comment_count),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);
  final String uid=Athority.getSharedPreference().getString("String_Node_Str","String_Node_Str");
  mListView=(ListView)findViewById(R.id.listView);
  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_POSTS,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 bm_cs=doc.getElementsByClass("String_Node_Str");
                if (!bm_cs.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=Athority.getSharedPreference().getString("String_Node_Str","String_Node_Str");
                  BasePost post;
                  for (                  Element bm_c : bm_cs) {
                    Elements as=bm_c.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();
                    }
                    Elements xg1s=bm_c.getElementsByClass("String_Node_Str");
                    comment_count=xg1s.text().substring("String_Node_Str".length());
                    post=new Post(0,tid,0,title,"String_Node_Str",time,haveimg,Integer.valueOf(comment_count),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_POSTS,uid),Api.USER_AGENT,(Map<String,String>)Athority.getSharedPreference().getAll(),Connection.Method.GET);
try {
  doc=response.parse();
  Elements bm_cs=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=Athority.getSharedPreference().getString("String_Node_Str","String_Node_Str");
  BasePost post;
  for (  Element bm_c : bm_cs) {
    Elements as=bm_c.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();
    }
    Elements xg1s=bm_c.getElementsByClass("String_Node_Str");
    comment_count=xg1s.text().substring("String_Node_Str".length());
    post=new Post(0,tid,0,title,"String_Node_Str",time,haveimg,Integer.valueOf(comment_count),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);
}
}
);
}