Program: 33996
Project: 33996
Buggy source:
private void initNavigationDrawer(){
  mNavSettingsItemLayout=(FrameLayout)findViewById(R.id.navigation_drawer_items_settings_layout);
  mNavFeedbackItemLayout=(FrameLayout)findViewById(R.id.navigation_drawer_items_feedback_layout);
  mNavScanLayout=(FrameLayout)findViewById(R.id.navigation_drawer_items_scan_layout);
  mNavExploreLayout=(FrameLayout)findViewById(R.id.navigation_drawer_items_explore_layout);
  mNavTitleLayout=(FrameLayout)findViewById(R.id.navigation_drawer_title_layout);
  mNavBodyScrollView=(ScrollView)findViewById(R.id.drawer_body_scroll_view);
  mNavBodyAccountView=(FrameLayout)findViewById(R.id.drawer_body_account_view);
  mNavAddAccountLayout=(FrameLayout)findViewById(R.id.drawer_account_items_add_layout);
  mNavManageAccountLayout=(FrameLayout)findViewById(R.id.drawer_account_items_manage_layout);
  mUserNameTextView=(TextView)findViewById(R.id.navigation_drawer_title_user_name);
  mUserEmailTextView=(TextView)findViewById(R.id.navigation_drawer_title_user_email);
  mTriangleImageView=(ImageView)findViewById(R.id.image_view_triangle);
  mCircleImageView=(CircleImageView)findViewById(R.id.navigation_drawer_account_profile_image);
  mAccountListView=(ListView)findViewById(R.id.list_view_account_email);
  SwitchCompat offlineSwitch=(SwitchCompat)findViewById(R.id.switch_compat_offline);
  offlineSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener(){
    @Override public void onCheckedChanged(    CompoundButton buttonView,    boolean isChecked){
      PrefsManager.setShowOfflineCamera(getApplicationContext(),isChecked);
      removeAllCameraViews();
      addAllCameraViews(false,true);
    }
  }
);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,mToolbar,R.string.navigation_drawer_opened,R.string.navigation_drawer_closed){
    @Override public void onDrawerSlide(    View drawerView,    float slideOffset){
      super.onDrawerSlide(drawerView,0);
      if (slideOffset != 0) {
        showAccountView(false);
        updateNavDrawerUserInfo();
      }
    }
  }
;
  mDrawerLayout.setDrawerListener(mDrawerToggle);
  mDrawerToggle.syncState();
  mNavSettingsItemLayout.setOnClickListener(this);
  mNavFeedbackItemLayout.setOnClickListener(this);
  mNavScanLayout.setOnClickListener(this);
  mNavExploreLayout.setOnClickListener(this);
  mNavAddAccountLayout.setOnClickListener(this);
  mNavManageAccountLayout.setOnClickListener(this);
  mNavTitleLayout.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      if (mTriangleImageView.getRotation() == 0) {
        showAccountView(true);
      }
 else       if (mTriangleImageView.getRotation() == 180) {
        showAccountView(false);
      }
    }
  }
);
  mAccountNavAdapter=new AccountNavAdapter(this,R.layout.item_list_nav_account,R.id.drawer_account_user_textView,AppData.appUsers);
  mAccountListView.setAdapter(mAccountNavAdapter);
  mAccountListView.setOnItemClickListener(new AdapterView.OnItemClickListener(){
    @Override public void onItemClick(    AdapterView<?> parent,    View view,    int position,    long id){
      final AppUser appUser=(AppUser)mAccountListView.getItemAtPosition(position);
      new CheckKeyExpirationTaskNavDrawer(appUser).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
    }
  }
);
}

Fixed version (ground truth):
private void initNavigationDrawer(){
  mNavSettingsItemLayout=(FrameLayout)findViewById(R.id.navigation_drawer_items_settings_layout);
  mNavFeedbackItemLayout=(FrameLayout)findViewById(R.id.navigation_drawer_items_feedback_layout);
  mNavScanLayout=(FrameLayout)findViewById(R.id.navigation_drawer_items_scan_layout);
  mNavExploreLayout=(FrameLayout)findViewById(R.id.navigation_drawer_items_explore_layout);
  mNavTitleLayout=(FrameLayout)findViewById(R.id.navigation_drawer_title_layout);
  mNavBodyScrollView=(ScrollView)findViewById(R.id.drawer_body_scroll_view);
  mNavBodyAccountView=(FrameLayout)findViewById(R.id.drawer_body_account_view);
  mNavAddAccountLayout=(FrameLayout)findViewById(R.id.drawer_account_items_add_layout);
  mNavManageAccountLayout=(FrameLayout)findViewById(R.id.drawer_account_items_manage_layout);
  mUserNameTextView=(TextView)findViewById(R.id.navigation_drawer_title_user_name);
  mUserEmailTextView=(TextView)findViewById(R.id.navigation_drawer_title_user_email);
  mTriangleImageView=(ImageView)findViewById(R.id.image_view_triangle);
  mCircleImageView=(CircleImageView)findViewById(R.id.navigation_drawer_account_profile_image);
  mAccountListView=(ListView)findViewById(R.id.list_view_account_email);
  SwitchCompat offlineSwitch=(SwitchCompat)findViewById(R.id.switch_compat_offline);
  offlineSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener(){
    @Override public void onCheckedChanged(    CompoundButton buttonView,    boolean isChecked){
      PrefsManager.setShowOfflineCamera(getApplicationContext(),isChecked);
      removeAllCameraViews();
      addAllCameraViews(false,true);
    }
  }
);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,mToolbar,R.string.navigation_drawer_opened,R.string.navigation_drawer_closed){
    @Override public void onDrawerSlide(    View drawerView,    float slideOffset){
      super.onDrawerSlide(drawerView,0);
      if (slideOffset > 0 && !mIsDrawerUpdated) {
        showAccountView(false);
        updateNavDrawerUserInfo();
        mIsDrawerUpdated=true;
      }
      if (slideOffset == 0) {
        mIsDrawerUpdated=false;
      }
    }
  }
;
  mDrawerLayout.setDrawerListener(mDrawerToggle);
  mDrawerToggle.syncState();
  mNavSettingsItemLayout.setOnClickListener(this);
  mNavFeedbackItemLayout.setOnClickListener(this);
  mNavScanLayout.setOnClickListener(this);
  mNavExploreLayout.setOnClickListener(this);
  mNavAddAccountLayout.setOnClickListener(this);
  mNavManageAccountLayout.setOnClickListener(this);
  mNavTitleLayout.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      if (mTriangleImageView.getRotation() == 0) {
        showAccountView(true);
      }
 else       if (mTriangleImageView.getRotation() == 180) {
        showAccountView(false);
      }
    }
  }
);
  updateUserListInNavDrawer();
  bindAccountList(mUserListInNavDrawer);
}