Program: 15194
Project: 15194
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.posts);
  FragmentManager fm=getSupportFragmentManager();
  postList=(ViewPosts)fm.findFragmentById(R.id.postList);
  Bundle extras=getIntent().getExtras();
  if (extras != null) {
    isPage=extras.getBoolean("String_Node_Str");
  }
  WordPress.currentPost=null;
  titleBar=(WPTitleBar)findViewById(R.id.postsActionBar);
  titleBar.refreshButton.setOnClickListener(new ImageButton.OnClickListener(){
    public void onClick(    View v){
      postList.refreshPosts(false);
    }
  }
);
  titleBar.setOnBlogChangedListener(new OnBlogChangedListener(){
    @Override public void OnBlogChanged(){
      FragmentManager fm=getSupportFragmentManager();
      ViewPostFragment f=(ViewPostFragment)fm.findFragmentById(R.id.postDetail);
      if (f == null) {
        fm.popBackStack();
      }
      attemptToSelectPost();
      postList.loadPosts(false);
    }
  }
);
  WordPress.setOnPostUploadedListener(new WordPress.OnPostUploadedListener(){
    @Override public void OnPostUploaded(){
      if (isFinishing())       return;
      FragmentManager fm=getSupportFragmentManager();
      ViewPostFragment f=(ViewPostFragment)fm.findFragmentById(R.id.postDetail);
      if (f == null) {
        fm.popBackStack();
      }
      attemptToSelectPost();
      postList.refreshPosts(false);
    }
  }
);
  attemptToSelectPost();
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.posts);
  FragmentManager fm=getSupportFragmentManager();
  postList=(ViewPosts)fm.findFragmentById(R.id.postList);
  Bundle extras=getIntent().getExtras();
  if (extras != null) {
    isPage=extras.getBoolean("String_Node_Str");
    String errorMessage=extras.getString("String_Node_Str");
    if (errorMessage != null) {
      AlertDialog.Builder dialogBuilder=new AlertDialog.Builder(Posts.this);
      dialogBuilder.setTitle(getResources().getText(R.string.error));
      dialogBuilder.setMessage(errorMessage);
      dialogBuilder.setPositiveButton("String_Node_Str",new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int whichButton){
        }
      }
);
      dialogBuilder.setCancelable(true);
      if (!isFinishing()) {
        dialogBuilder.create().show();
      }
    }
  }
  WordPress.currentPost=null;
  titleBar=(WPTitleBar)findViewById(R.id.postsActionBar);
  titleBar.refreshButton.setOnClickListener(new ImageButton.OnClickListener(){
    public void onClick(    View v){
      postList.refreshPosts(false);
    }
  }
);
  titleBar.setOnBlogChangedListener(new OnBlogChangedListener(){
    @Override public void OnBlogChanged(){
      FragmentManager fm=getSupportFragmentManager();
      ViewPostFragment f=(ViewPostFragment)fm.findFragmentById(R.id.postDetail);
      if (f == null) {
        fm.popBackStack();
      }
      attemptToSelectPost();
      postList.loadPosts(false);
    }
  }
);
  WordPress.setOnPostUploadedListener(new WordPress.OnPostUploadedListener(){
    @Override public void OnPostUploaded(){
      if (isFinishing())       return;
      FragmentManager fm=getSupportFragmentManager();
      ViewPostFragment f=(ViewPostFragment)fm.findFragmentById(R.id.postDetail);
      if (f == null) {
        fm.popBackStack();
      }
      attemptToSelectPost();
      postList.refreshPosts(false);
    }
  }
);
  attemptToSelectPost();
}