Program: 15187
Project: 15187
Buggy source:
private void setupDashboardButtons(){
  LinearLayout writeButton=(LinearLayout)findViewById(R.id.dashboard_newpost_btn);
  writeButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      Intent i=new Intent(context,EditPost.class);
      i.putExtra("String_Node_Str",WordPress.currentBlog.getId());
      i.putExtra("String_Node_Str",true);
      context.startActivity(i);
      hideOverlay();
    }
  }
);
  LinearLayout newPageButton=(LinearLayout)findViewById(R.id.dashboard_newpage_btn);
  newPageButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      Intent i=new Intent(context,EditPost.class);
      i.putExtra("String_Node_Str",WordPress.currentBlog.getId());
      i.putExtra("String_Node_Str",true);
      i.putExtra("String_Node_Str",true);
      context.startActivity(i);
      hideOverlay();
    }
  }
);
  LinearLayout postsButton=(LinearLayout)findViewById(R.id.dashboard_posts_btn);
  postsButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      Intent i=new Intent(context,Posts.class);
      context.startActivity(i);
      hideOverlay();
    }
  }
);
  LinearLayout pagesButton=(LinearLayout)findViewById(R.id.dashboard_pages_btn);
  pagesButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      Intent i=new Intent(context,Posts.class);
      i.putExtra("String_Node_Str",WordPress.currentBlog.getId());
      i.putExtra("String_Node_Str",true);
      i.putExtra("String_Node_Str",true);
      context.startActivity(i);
      hideOverlay();
    }
  }
);
  LinearLayout commentsButton=(LinearLayout)findViewById(R.id.dashboard_comments_btn);
  commentsButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      Intent i=new Intent(context,Comments.class);
      i.putExtra("String_Node_Str",WordPress.currentBlog.getId());
      i.putExtra("String_Node_Str",true);
      context.startActivity(i);
      hideOverlay();
    }
  }
);
  LinearLayout statsButton=(LinearLayout)findViewById(R.id.dashboard_stats_btn);
  statsButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      Intent i=new Intent(context,ViewStats.class);
      i.putExtra("String_Node_Str",WordPress.currentBlog.getId());
      i.putExtra("String_Node_Str",true);
      context.startActivity(i);
      hideOverlay();
    }
  }
);
  LinearLayout settingsButton=(LinearLayout)findViewById(R.id.dashboard_settings_btn);
  settingsButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      Intent i=new Intent(context,Settings.class);
      i.putExtra("String_Node_Str",WordPress.currentBlog.getId());
      i.putExtra("String_Node_Str",true);
      context.startActivity(i);
      hideOverlay();
    }
  }
);
  LinearLayout readButton=(LinearLayout)findViewById(R.id.dashboard_subs_btn);
  readButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      int readerBlogID=WordPress.wpDB.getWPCOMBlogID();
      if (WordPress.currentBlog.isDotcomFlag()) {
        Intent i=new Intent(context,Read.class);
        i.putExtra("String_Node_Str",readerBlogID);
        i.putExtra("String_Node_Str",true);
        context.startActivity(i);
        hideOverlay();
      }
 else {
        Intent i=new Intent(context,Read.class);
        i.putExtra("String_Node_Str",true);
        context.startActivity(i);
        hideOverlay();
      }
    }
  }
);
  LinearLayout picButton=(LinearLayout)findViewById(R.id.dashboard_quickphoto_btn);
  picButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      PackageManager pm=context.getPackageManager();
      if (pm.hasSystemFeature(PackageManager.FEATURE_CAMERA)) {
        Intent i=new Intent(context,EditPost.class);
        i.putExtra("String_Node_Str","String_Node_Str");
        i.putExtra("String_Node_Str",true);
        context.startActivity(i);
        hideOverlay();
      }
 else {
        Toast.makeText(context,getResources().getText(R.string.no_camera_found),Toast.LENGTH_LONG).show();
      }
    }
  }
);
  LinearLayout videoButton=(LinearLayout)findViewById(R.id.dashboard_quickvideo_btn);
  videoButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      PackageManager pm=context.getPackageManager();
      if (pm.hasSystemFeature(PackageManager.FEATURE_CAMERA)) {
        Intent i=new Intent(context,EditPost.class);
        i.putExtra("String_Node_Str","String_Node_Str");
        i.putExtra("String_Node_Str",true);
        context.startActivity(i);
        hideOverlay();
      }
 else {
        Toast.makeText(context,getResources().getText(R.string.no_camera_found),Toast.LENGTH_LONG).show();
      }
    }
  }
);
  commentBadgeText=(TextView)findViewById(R.id.comment_badge_text);
  updateCommentBadge();
  updateReadButton();
}

Fixed version (ground truth):
private void setupDashboardButtons(){
  LinearLayout writeButton=(LinearLayout)findViewById(R.id.dashboard_newpost_btn);
  writeButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      WordPress.richPostContent=null;
      Intent i=new Intent(context,EditPost.class);
      i.putExtra("String_Node_Str",WordPress.currentBlog.getId());
      i.putExtra("String_Node_Str",true);
      context.startActivity(i);
      hideOverlay();
    }
  }
);
  LinearLayout newPageButton=(LinearLayout)findViewById(R.id.dashboard_newpage_btn);
  newPageButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      WordPress.richPostContent=null;
      Intent i=new Intent(context,EditPost.class);
      i.putExtra("String_Node_Str",WordPress.currentBlog.getId());
      i.putExtra("String_Node_Str",true);
      i.putExtra("String_Node_Str",true);
      context.startActivity(i);
      hideOverlay();
    }
  }
);
  LinearLayout postsButton=(LinearLayout)findViewById(R.id.dashboard_posts_btn);
  postsButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      Intent i=new Intent(context,Posts.class);
      context.startActivity(i);
      hideOverlay();
    }
  }
);
  LinearLayout pagesButton=(LinearLayout)findViewById(R.id.dashboard_pages_btn);
  pagesButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      Intent i=new Intent(context,Posts.class);
      i.putExtra("String_Node_Str",WordPress.currentBlog.getId());
      i.putExtra("String_Node_Str",true);
      i.putExtra("String_Node_Str",true);
      context.startActivity(i);
      hideOverlay();
    }
  }
);
  LinearLayout commentsButton=(LinearLayout)findViewById(R.id.dashboard_comments_btn);
  commentsButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      Intent i=new Intent(context,Comments.class);
      i.putExtra("String_Node_Str",WordPress.currentBlog.getId());
      i.putExtra("String_Node_Str",true);
      context.startActivity(i);
      hideOverlay();
    }
  }
);
  LinearLayout statsButton=(LinearLayout)findViewById(R.id.dashboard_stats_btn);
  statsButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      Intent i=new Intent(context,ViewStats.class);
      i.putExtra("String_Node_Str",WordPress.currentBlog.getId());
      i.putExtra("String_Node_Str",true);
      context.startActivity(i);
      hideOverlay();
    }
  }
);
  LinearLayout settingsButton=(LinearLayout)findViewById(R.id.dashboard_settings_btn);
  settingsButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      Intent i=new Intent(context,Settings.class);
      i.putExtra("String_Node_Str",WordPress.currentBlog.getId());
      i.putExtra("String_Node_Str",true);
      context.startActivity(i);
      hideOverlay();
    }
  }
);
  LinearLayout readButton=(LinearLayout)findViewById(R.id.dashboard_subs_btn);
  readButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      int readerBlogID=WordPress.wpDB.getWPCOMBlogID();
      if (WordPress.currentBlog.isDotcomFlag()) {
        Intent i=new Intent(context,Read.class);
        i.putExtra("String_Node_Str",readerBlogID);
        i.putExtra("String_Node_Str",true);
        context.startActivity(i);
        hideOverlay();
      }
 else {
        Intent i=new Intent(context,Read.class);
        i.putExtra("String_Node_Str",true);
        context.startActivity(i);
        hideOverlay();
      }
    }
  }
);
  LinearLayout picButton=(LinearLayout)findViewById(R.id.dashboard_quickphoto_btn);
  picButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      PackageManager pm=context.getPackageManager();
      if (pm.hasSystemFeature(PackageManager.FEATURE_CAMERA)) {
        WordPress.richPostContent=null;
        Intent i=new Intent(context,EditPost.class);
        i.putExtra("String_Node_Str","String_Node_Str");
        i.putExtra("String_Node_Str",true);
        context.startActivity(i);
        hideOverlay();
      }
 else {
        Toast.makeText(context,getResources().getText(R.string.no_camera_found),Toast.LENGTH_LONG).show();
      }
    }
  }
);
  LinearLayout videoButton=(LinearLayout)findViewById(R.id.dashboard_quickvideo_btn);
  videoButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      PackageManager pm=context.getPackageManager();
      if (pm.hasSystemFeature(PackageManager.FEATURE_CAMERA)) {
        WordPress.richPostContent=null;
        Intent i=new Intent(context,EditPost.class);
        i.putExtra("String_Node_Str","String_Node_Str");
        i.putExtra("String_Node_Str",true);
        context.startActivity(i);
        hideOverlay();
      }
 else {
        Toast.makeText(context,getResources().getText(R.string.no_camera_found),Toast.LENGTH_LONG).show();
      }
    }
  }
);
  commentBadgeText=(TextView)findViewById(R.id.comment_badge_text);
  updateCommentBadge();
  updateReadButton();
}