Program: 14520
Project: 14520
Buggy source:
/** 
 * Create menu drawer ListView and listeners
 */
private void initMenuDrawer(int blogSelection){
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  mDrawerListView=(ListView)findViewById(R.id.left_drawer);
  if (mDrawerListView.getHeaderViewsCount() == 0) {
    View view=getLayoutInflater().inflate(R.layout.menu_drawer_header,mDrawerListView,false);
    mDrawerListView.addHeaderView(view,null,false);
  }
  mBlogSpinner=(Spinner)findViewById(R.id.blog_spinner);
  String[] blogNames=getBlogNames();
  if (blogNames.length > 1) {
    mBlogSpinner.setVisibility(View.VISIBLE);
    mBlogSpinner.setOnItemSelectedListener(mItemSelectedListener);
    populateBlogSpinner(blogNames);
  }
 else {
    mBlogSpinner.setVisibility(View.GONE);
  }
  mDrawerAdapter=new MenuDrawerAdapter(this);
  mDrawerListView.setAdapter(mDrawerAdapter);
  mDrawerListView.setOnItemClickListener(new AdapterView.OnItemClickListener(){
    public void onItemClick(    AdapterView<?> parent,    View view,    int position,    long id){
      mDrawerLayout.closeDrawer(Gravity.START);
      int menuPosition=position - mDrawerListView.getHeaderViewsCount();
      if (menuPosition < 0 || menuPosition >= mDrawerAdapter.getCount()) {
        return;
      }
      MenuDrawerItem item=(MenuDrawerItem)mDrawerAdapter.getItem(menuPosition);
      if (item.hasItemId()) {
        ActivityId.trackLastActivity(WPDrawerActivity.this,item.getItemId());
      }
      if (!item.isSelected()) {
        item.selectItem();
      }
    }
  }
);
  mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,mToolbar,R.string.open_drawer,R.string.close_drawer){
    public void onDrawerClosed(    View view){
      invalidateOptionsMenu();
    }
    public void onDrawerOpened(    View drawerView){
      invalidateOptionsMenu();
    }
  }
;
  mDrawerToggle.setHomeAsUpIndicator(R.drawable.ic_arrow_back_white_24dp);
  if (blogSelection != -1 && mBlogSpinner != null) {
    mBlogSpinner.setSelection(blogSelection);
  }
  updateMenuDrawer();
}

Fixed version (ground truth):
/** 
 * Create menu drawer ListView and listeners
 */
private void initMenuDrawer(int blogSelection){
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  mDrawerListView=(ListView)findViewById(R.id.left_drawer);
  if (mDrawerListView.getHeaderViewsCount() == 0) {
    View view=getLayoutInflater().inflate(R.layout.menu_drawer_header,mDrawerListView,false);
    mDrawerListView.addHeaderView(view,null,false);
  }
  mBlogSpinner=(Spinner)findViewById(R.id.blog_spinner);
  View divider=findViewById(R.id.blog_spinner_divider);
  String[] blogNames=getBlogNames();
  if (blogNames.length > 1) {
    mBlogSpinner.setVisibility(View.VISIBLE);
    divider.setVisibility(View.VISIBLE);
    mBlogSpinner.setOnItemSelectedListener(mItemSelectedListener);
    populateBlogSpinner(blogNames);
  }
 else {
    mBlogSpinner.setVisibility(View.GONE);
    divider.setVisibility(View.GONE);
  }
  mDrawerAdapter=new MenuDrawerAdapter(this);
  mDrawerListView.setAdapter(mDrawerAdapter);
  mDrawerListView.setOnItemClickListener(new AdapterView.OnItemClickListener(){
    public void onItemClick(    AdapterView<?> parent,    View view,    int position,    long id){
      mDrawerLayout.closeDrawer(Gravity.START);
      int menuPosition=position - mDrawerListView.getHeaderViewsCount();
      if (menuPosition < 0 || menuPosition >= mDrawerAdapter.getCount()) {
        return;
      }
      MenuDrawerItem item=(MenuDrawerItem)mDrawerAdapter.getItem(menuPosition);
      if (item.hasItemId()) {
        ActivityId.trackLastActivity(WPDrawerActivity.this,item.getItemId());
      }
      if (!item.isSelected()) {
        item.selectItem();
      }
    }
  }
);
  mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,mToolbar,R.string.open_drawer,R.string.close_drawer){
    public void onDrawerClosed(    View view){
      invalidateOptionsMenu();
    }
    public void onDrawerOpened(    View drawerView){
      invalidateOptionsMenu();
    }
  }
;
  mDrawerToggle.setHomeAsUpIndicator(R.drawable.ic_arrow_back_white_24dp);
  if (blogSelection != -1 && mBlogSpinner != null) {
    mBlogSpinner.setSelection(blogSelection);
  }
  updateMenuDrawer();
}