Program: 32082
Project: 32082
Buggy source:
@Override public void onInitialMessagesLoaded(){
  Log.d(LOG_TAG,"String_Node_Str");
  getUiHandler().post(new Runnable(){
    @Override public void run(){
      hideLoadingBackProgress();
      if (null == mMessageListView.getAdapter()) {
        mMessageListView.setAdapter(mAdapter);
      }
      if ((null == mEventTimeLine) || mEventTimeLine.isLiveTimeline()) {
        if (mAdapter.getCount() > 0) {
          mAdapter.notifyDataSetChanged();
          if (mScrollToIndex >= 0) {
            mMessageListView.setSelection(mScrollToIndex);
            mScrollToIndex=-1;
          }
 else {
            mMessageListView.setSelection(mAdapter.getCount() - 1);
          }
        }
        mMessageListView.post(new Runnable(){
          @Override public void run(){
            if ((mMessageListView.getVisibility() == View.VISIBLE) && mMessageListView.getFirstVisiblePosition() < 10) {
              Log.d(LOG_TAG,"String_Node_Str");
              backPaginate(true);
            }
 else {
              Log.d(LOG_TAG,"String_Node_Str");
              mIsInitialSyncing=false;
              setMessageListViewScrollListener();
            }
          }
        }
);
      }
 else {
        Log.d(LOG_TAG,"String_Node_Str");
        if ((0 != mAdapter.getCount()) && (mScrollToIndex > 0)) {
          mAdapter.notifyDataSetChanged();
          mMessageListView.setSelection(mScrollToIndex);
          mScrollToIndex=-1;
          mMessageListView.post(new Runnable(){
            @Override public void run(){
              mIsInitialSyncing=false;
              setMessageListViewScrollListener();
            }
          }
);
        }
 else {
          mIsInitialSyncing=false;
          setMessageListViewScrollListener();
        }
      }
    }
  }
);
}

Fixed version (ground truth):
@Override public void onInitialMessagesLoaded(){
  Log.d(LOG_TAG,"String_Node_Str");
  getUiHandler().post(new Runnable(){
    @Override public void run(){
      if (null == mMessageListView) {
        return;
      }
      hideLoadingBackProgress();
      if (null == mMessageListView.getAdapter()) {
        mMessageListView.setAdapter(mAdapter);
      }
      if ((null == mEventTimeLine) || mEventTimeLine.isLiveTimeline()) {
        if (mAdapter.getCount() > 0) {
          mAdapter.notifyDataSetChanged();
          if (mScrollToIndex >= 0) {
            mMessageListView.setSelection(mScrollToIndex);
            mScrollToIndex=-1;
          }
 else {
            mMessageListView.setSelection(mAdapter.getCount() - 1);
          }
        }
        mMessageListView.post(new Runnable(){
          @Override public void run(){
            if ((mMessageListView.getVisibility() == View.VISIBLE) && mMessageListView.getFirstVisiblePosition() < 10) {
              Log.d(LOG_TAG,"String_Node_Str");
              backPaginate(true);
            }
 else {
              Log.d(LOG_TAG,"String_Node_Str");
              mIsInitialSyncing=false;
              setMessageListViewScrollListener();
            }
          }
        }
);
      }
 else {
        Log.d(LOG_TAG,"String_Node_Str");
        if ((0 != mAdapter.getCount()) && (mScrollToIndex > 0)) {
          mAdapter.notifyDataSetChanged();
          mMessageListView.setSelection(mScrollToIndex);
          mScrollToIndex=-1;
          mMessageListView.post(new Runnable(){
            @Override public void run(){
              mIsInitialSyncing=false;
              setMessageListViewScrollListener();
            }
          }
);
        }
 else {
          mIsInitialSyncing=false;
          setMessageListViewScrollListener();
        }
      }
    }
  }
);
}